mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
change field name of attributes to 'attributes_version'
makes much more sense because the attributes are version attributes.
This commit is contained in:
parent
8531371f67
commit
258c3fae0b
|
@ -265,8 +265,8 @@ default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_POST["attributes"]) && $_POST["attributes"]) {
|
if(isset($_POST["attributes_version"]) && $_POST["attributes_version"]) {
|
||||||
$attributes = $_POST["attributes"];
|
$attributes = $_POST["attributes_version"];
|
||||||
foreach($attributes as $attrdefid=>$attribute) {
|
foreach($attributes as $attrdefid=>$attribute) {
|
||||||
$attrdef = $dms->getAttributeDefinition($attrdefid);
|
$attrdef = $dms->getAttributeDefinition($attrdefid);
|
||||||
if($attribute) {
|
if($attribute) {
|
||||||
|
|
|
@ -289,7 +289,7 @@ console.log(element);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td>
|
<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td>
|
||||||
<td><?php $this->printAttributeEditField($attrdef, '') ?>
|
<td><?php $this->printAttributeEditField($attrdef, '', 'attributes_version') ?>
|
||||||
<?php
|
<?php
|
||||||
if($latestContent->getAttributeValue($attrdef)) {
|
if($latestContent->getAttributeValue($attrdef)) {
|
||||||
switch($attrdef->getType()) {
|
switch($attrdef->getType()) {
|
||||||
|
@ -297,10 +297,10 @@ console.log(element);
|
||||||
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_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef), $attrdef->getValueSetSeparator());
|
$this->printInputPresetButtonHtml('attributes_version'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef), $attrdef->getValueSetSeparator());
|
||||||
break;
|
break;
|
||||||
case SeedDMS_Core_AttributeDefinition::type_boolean:
|
case SeedDMS_Core_AttributeDefinition::type_boolean:
|
||||||
$this->printCheckboxPresetButtonHtml('attributes_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef));
|
$this->printCheckboxPresetButtonHtml('attributes_version'.$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