mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
set default value of attribute of type email
This commit is contained in:
parent
8b26681153
commit
4d6d184944
|
@ -1141,6 +1141,7 @@ $('#acceptkeywords').click(function(ev) {
|
|||
<?php
|
||||
break;
|
||||
case SeedDMS_Core_AttributeDefinition::type_email:
|
||||
$objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : '';
|
||||
echo "<input type=\"text\" name=\"".$fieldname."[".$attrdef->getId()."]\" value=\"".htmlspecialchars($objvalue)."\"".((!$norequire && $attrdef->getMinValues() > 0) ? ' required' : '').' data-rule-email="true"'." />";
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue
Block a user