mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Fix WriteMetas
This commit is contained in:
@@ -325,14 +325,13 @@ class task_period_writemeta extends task_databoxAbstract
|
|||||||
|
|
||||||
$multi = $meta->is_multi();
|
$multi = $meta->is_multi();
|
||||||
$type = $meta->get_type();
|
$type = $meta->get_type();
|
||||||
$datas = $field->get_value();
|
$datas = $field->get_values();
|
||||||
|
|
||||||
if ($multi)
|
if ($multi)
|
||||||
{
|
{
|
||||||
$datas = $field->get_value();
|
|
||||||
foreach ($datas as $value)
|
foreach ($datas as $value)
|
||||||
{
|
{
|
||||||
$value = $this->format_value($type, $value);
|
$value = $this->format_value($type, $value->getValue());
|
||||||
|
|
||||||
$subCMD .= '-'.$meta->get_metadata_namespace().':'.$meta->get_metadata_tagname().'=';
|
$subCMD .= '-'.$meta->get_metadata_namespace().':'.$meta->get_metadata_tagname().'=';
|
||||||
$subCMD .= escapeshellarg($value).' ';
|
$subCMD .= escapeshellarg($value).' ';
|
||||||
@@ -340,7 +339,8 @@ class task_period_writemeta extends task_databoxAbstract
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$datas = $this->format_value($type, $datas);
|
$value = array_pop($datas);
|
||||||
|
$datas = $this->format_value($type, $value->getValue());
|
||||||
|
|
||||||
$subCMD .= '-'.$meta->get_metadata_namespace().':'.$meta->get_metadata_tagname().'=';
|
$subCMD .= '-'.$meta->get_metadata_namespace().':'.$meta->get_metadata_tagname().'=';
|
||||||
$subCMD .= escapeshellarg($datas).' ';
|
$subCMD .= escapeshellarg($datas).' ';
|
||||||
|
Reference in New Issue
Block a user