mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
fix setting attributes
used the wrong field name
This commit is contained in:
parent
b553263f11
commit
841cd2cfaf
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user