Browse Source

修复自定义模型中字段禁止会员投稿的问题

tags/6.5.8
tianya 4 weeks ago
parent
commit
de49233e86
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/user/inc/inc_archives_functions.php

+ 3
- 3
src/user/inc/inc_archives_functions.php View File

@@ -188,10 +188,10 @@ function PrintAutoFieldsAdd($fieldset, $loadtype = 'all', $isprint = TRUE)
$addonfieldsname = '';
if (is_array($dtp->CTags)) {
foreach ($dtp->CTags as $tid => $ctag) {
if ($loadtype != 'autofield' || $ctag->GetAtt('autofield') == 1) {
if (($loadtype != 'autofield' || $ctag->GetAtt('autofield') == 1) && $ctag->GetAtt('notsend') == 0) {
$dede_addonfields .= ($dede_addonfields == "" ? $ctag->GetName().",".$ctag->GetAtt('type') : ";".$ctag->GetName().",".$ctag->GetAtt('type'));
$addonfieldsname .= ",".$ctag->GetName();
if ($isprint) echo GetFormItemA($ctag);
if ($isprint) echo GetFormItemA($ctag);
}
}
}
@@ -217,7 +217,7 @@ function PrintAutoFieldsEdit(&$fieldset, &$fieldValues, $loadtype = 'all')
if (is_array($dtp->CTags)) {
foreach ($dtp->CTags as $tid => $ctag) {
if (
$loadtype != 'autofield' || ($loadtype == 'autofield' && $ctag->GetAtt('autofield') == 1)) {
($loadtype != 'autofield' || ($loadtype == 'autofield' && $ctag->GetAtt('autofield') == 1) && $ctag->GetAtt('notsend') == 0)) {
$dede_addonfields .= ($dede_addonfields == '' ? $ctag->GetName().",".$ctag->GetAtt('type') : ";".$ctag->GetName().",".$ctag->GetAtt('type'));
echo GetFormItemValueA($ctag, $fieldValues[$ctag->GetName()]);
}


Loading…
Cancel
Save