mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
default path when create a new subviews
This commit is contained in:
@@ -202,6 +202,11 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
|
||||
$mediaTypeElement->appendChild($dom_struct->createTextNode($mediatype));
|
||||
$subdef->appendChild($mediaTypeElement);
|
||||
|
||||
$defaultPath = $this->databox->getSubdefStorage();
|
||||
$pathElement = $dom_struct->createElement('path');
|
||||
$pathElement->appendChild($dom_struct->createTextNode($defaultPath));
|
||||
$subdef->appendChild($pathElement);
|
||||
|
||||
$dom_xp = $this->databox->get_xpath_structure();
|
||||
$query = '//record/subdefs/subdefgroup[@name="' . $groupname . '"]';
|
||||
$groups = $dom_xp->query($query);
|
||||
|
Reference in New Issue
Block a user