mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix business attributes in the XML structure
This commit is contained in:
@@ -375,7 +375,7 @@ class databox extends base
|
||||
public static function create(appbox &$appbox, connection_pdo &$connection, \SplFileInfo $data_template, registryInterface $registry)
|
||||
{
|
||||
if ( ! file_exists($data_template->getRealPath())) {
|
||||
throw new \InvalidArgumentException();
|
||||
throw new \InvalidArgumentException($data_template->getRealPath() . " does not exist");
|
||||
}
|
||||
|
||||
$credentials = $connection->get_credentials();
|
||||
@@ -848,6 +848,7 @@ class databox extends base
|
||||
->set_indexable(isset($field['index']) ? $field['index'] : '1')
|
||||
->set_separator(isset($field['separator']) ? $field['separator'] : '')
|
||||
->set_required((isset($field['required']) && $field['required'] == 1))
|
||||
->set_business((isset($field['business']) && $field['business'] == 1))
|
||||
->set_type($type)
|
||||
->set_tbranch(isset($field['tbranch']) ? $field['tbranch'] : '')
|
||||
->set_thumbtitle(isset($field['thumbtitle']) ? $field['thumbtitle'] : (isset($field['thumbTitle']) ? $field['thumbTitle'] : '0'))
|
||||
|
Reference in New Issue
Block a user