Release of v4.0.3-alpha1
Add push option to powers area.
This commit is contained in:
@ -71,6 +71,12 @@ class RepositoryModel extends AdminModel
|
||||
'target',
|
||||
'access_repo'
|
||||
)
|
||||
),
|
||||
'placeholders' => array(
|
||||
'fullwidth' => array(
|
||||
'placeholder_note',
|
||||
'addplaceholders'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@ -154,6 +160,14 @@ class RepositoryModel extends AdminModel
|
||||
$registry->loadString($item->metadata);
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addplaceholders))
|
||||
{
|
||||
// Convert the addplaceholders field to an array.
|
||||
$addplaceholders = new Registry;
|
||||
$addplaceholders->loadString($item->addplaceholders);
|
||||
$item->addplaceholders = $addplaceholders->toArray();
|
||||
}
|
||||
}
|
||||
|
||||
return $item;
|
||||
@ -893,6 +907,19 @@ class RepositoryModel extends AdminModel
|
||||
$data['guid'] = (string) GuidHelper::get();
|
||||
}
|
||||
|
||||
// Set the addplaceholders items to data.
|
||||
if (isset($data['addplaceholders']) && is_array($data['addplaceholders']))
|
||||
{
|
||||
$addplaceholders = new Registry;
|
||||
$addplaceholders->loadArray($data['addplaceholders']);
|
||||
$data['addplaceholders'] = (string) $addplaceholders;
|
||||
}
|
||||
elseif (!isset($data['addplaceholders']))
|
||||
{
|
||||
// Set the empty addplaceholders to data
|
||||
$data['addplaceholders'] = '';
|
||||
}
|
||||
|
||||
// Set the Params Items to data
|
||||
if (isset($data['params']) && is_array($data['params']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user