fix setting attributes

used the wrong field name
This commit is contained in:
Uwe Steinmann 2018-03-07 17:16:02 +01:00
parent b553263f11
commit 841cd2cfaf

View File

@ -212,7 +212,7 @@ $(document).ready(function() {
?> ?>
<tr> <tr>
<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td> <td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td>
<td><?php $this->printAttributeEditField($attrdef, '', 'attributes_version') ?> <td><?php $this->printAttributeEditField($attrdef, '', 'attributes') ?>
<?php <?php
if($latestContent->getAttributeValue($attrdef)) { if($latestContent->getAttributeValue($attrdef)) {
switch($attrdef->getType()) { switch($attrdef->getType()) {
@ -220,10 +220,10 @@ $(document).ready(function() {
case SeedDMS_Core_AttributeDefinition::type_date: case SeedDMS_Core_AttributeDefinition::type_date:
case SeedDMS_Core_AttributeDefinition::type_int: case SeedDMS_Core_AttributeDefinition::type_int:
case SeedDMS_Core_AttributeDefinition::type_float: case SeedDMS_Core_AttributeDefinition::type_float:
$this->printInputPresetButtonHtml('attributes_version_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef), $attrdef->getValueSetSeparator()); $this->printInputPresetButtonHtml('attributes_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef), $attrdef->getValueSetSeparator());
break; break;
case SeedDMS_Core_AttributeDefinition::type_boolean: case SeedDMS_Core_AttributeDefinition::type_boolean:
$this->printCheckboxPresetButtonHtml('attributes_version_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef)); $this->printCheckboxPresetButtonHtml('attributes_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef));
break; break;
} }
// print_r($latestContent->getAttributeValue($attrdef)); // print_r($latestContent->getAttributeValue($attrdef));