Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue - AP drop folder config not being saved. #9077

Merged
merged 1 commit into from Dec 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -29,7 +29,7 @@ public function populateFromObject($dropFolder, $add_underscore = true)

public function getObject($object, $objectType, array $properties, $add_underscore = true, $include_empty_fields = false)
{
$object = parent::getObject($objectType, $objectType, $properties, $add_underscore, $include_empty_fields);
$object = parent::getObject($object, $objectType, $properties, $add_underscore, $include_empty_fields);

$itemXpathsToExtend = isset($properties['itemXpathsToExtend']) && is_array($properties['itemXpathsToExtend']) ? $properties['itemXpathsToExtend'] : array();
$object->itemXpathsToExtend = array();
Expand All @@ -46,11 +46,11 @@ public function getObject($object, $objectType, array $properties, $add_undersco
protected function addItemXpathsToExtend($itemXpathsToExtend)
{
if (count($itemXpathsToExtend) == 0)
$itemXpathsToExtend = array();
$itemXpathsToExtend = array(new Kaltura_Client_Type_StringValue());

$mainSubForm = new Zend_Form_SubForm();
$mainSubForm->setLegend('Item XPaths To Expand');
$this->getView()->addBasePath(realpath(dirname(__FILE__)));
$this->getView()->addBasePath(realpath(dirname(__FILE__)).'/..');
$mainSubForm->setDecorators(array(
'FormElements',
array('ViewScript', array(
Expand Down