pre-filling by default accountcode with current _SESSION[domain_name] only for superadmin and when adding

This commit is contained in:
luis daniel lucio quiroz 2014-06-18 12:22:38 +00:00
parent c4d3beb59d
commit b1bb4f3818
1 changed files with 1 additions and 0 deletions

View File

@ -957,6 +957,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo " ".$text['label-accountcode'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
if ($action == "add"){ $accountcode=$_SESSION['domain_name']; }
echo " <input class='formfld' type='text' name='accountcode' maxlength='255' value=\"$accountcode\">\n";
echo "<br />\n";
echo $text['description-accountcode']."\n";