Skip to content

Commit

Permalink
Merge pull request kaltura#5407 from kaltura/Lynx-12.14.0-PLAT-7150
Browse files Browse the repository at this point in the history
small fixes
  • Loading branch information
noam-arad authored Apr 2, 2017
2 parents d0824b7 + 8f58a23 commit 385dc35
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ public function doFromObject($source_object, KalturaDetachedResponseProfile $res
*/
public function toInsertableObject ( $object_to_fill = null , $props_to_skip = array() )
{
if($this->xslt)
throw new KalturaAPIException(KalturaErrors::PROPERTY_VALIDATION_NO_INSERT_PERMISSION, 'xslt');

$this->xslt = null;
return parent::toInsertableObject($object_to_fill, $props_to_skip);
}

Expand All @@ -50,9 +48,7 @@ public function toInsertableObject ( $object_to_fill = null , $props_to_skip = a
*/
public function toUpdatableObject ( $object_to_fill , $props_to_skip = array() )
{
if($this->xslt)
throw new KalturaAPIException(KalturaErrors::PROPERTY_VALIDATION_NOT_UPDATABLE, 'xslt');

$this->xslt = null;
return parent::toUpdatableObject($object_to_fill, $props_to_skip );
}

Expand Down

0 comments on commit 385dc35

Please sign in to comment.