mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
Fix title_bold and other flags not being unset when updated
This commit is contained in:
parent
58c910dfa0
commit
6e4c428420
2 changed files with 7 additions and 3 deletions
|
|
@ -969,6 +969,8 @@ class CommentController extends Comment
|
||||||
$obj->homepage = $obj->homepage ?? $source_obj->get('homepage');
|
$obj->homepage = $obj->homepage ?? $source_obj->get('homepage');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(($obj->is_secret ?? 'N') !== 'Y') $obj->is_secret = 'N';
|
||||||
|
if(($obj->notify_message ?? 'N') !== 'Y') $obj->notify_message = 'N';
|
||||||
$obj->uploaded_count = FileModel::getFilesCount($obj->comment_srl);
|
$obj->uploaded_count = FileModel::getFilesCount($obj->comment_srl);
|
||||||
|
|
||||||
// call a trigger (before)
|
// call a trigger (before)
|
||||||
|
|
|
||||||
|
|
@ -924,6 +924,11 @@ class DocumentController extends Document
|
||||||
$obj->ipaddress = $source_obj->get('ipaddress');
|
$obj->ipaddress = $source_obj->get('ipaddress');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!isset($obj->is_notice)) $obj->is_notice = 'N';
|
||||||
|
if(($obj->title_bold ?? 'N') !== 'Y') $obj->title_bold = 'N';
|
||||||
|
if(($obj->title_color ?? 'N') === 'N') $obj->title_color = 'N';
|
||||||
|
if(($obj->notify_message ?? 'N') !== 'Y') $obj->notify_message = 'N';
|
||||||
|
if(($obj->allow_trackback ?? 'N') !== 'Y') $obj->allow_trackback = 'N';
|
||||||
$obj->uploaded_count = FileModel::getFilesCount($obj->document_srl);
|
$obj->uploaded_count = FileModel::getFilesCount($obj->document_srl);
|
||||||
|
|
||||||
// Call a trigger (before)
|
// Call a trigger (before)
|
||||||
|
|
@ -951,7 +956,6 @@ class DocumentController extends Document
|
||||||
if($obj->comment_status) $obj->commentStatus = $obj->comment_status;
|
if($obj->comment_status) $obj->commentStatus = $obj->comment_status;
|
||||||
if(!$obj->commentStatus) $obj->commentStatus = 'DENY';
|
if(!$obj->commentStatus) $obj->commentStatus = 'DENY';
|
||||||
if($obj->commentStatus == 'DENY') $this->_checkCommentStatusForOldVersion($obj);
|
if($obj->commentStatus == 'DENY') $this->_checkCommentStatusForOldVersion($obj);
|
||||||
if($obj->allow_trackback!='Y') $obj->allow_trackback = 'N';
|
|
||||||
if($obj->homepage)
|
if($obj->homepage)
|
||||||
{
|
{
|
||||||
$obj->homepage = escape($obj->homepage);
|
$obj->homepage = escape($obj->homepage);
|
||||||
|
|
@ -961,8 +965,6 @@ class DocumentController extends Document
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($obj->notify_message != 'Y') $obj->notify_message = 'N';
|
|
||||||
|
|
||||||
// can modify regdate only manager
|
// can modify regdate only manager
|
||||||
$grant = Context::get('grant');
|
$grant = Context::get('grant');
|
||||||
if(!$grant->manager)
|
if(!$grant->manager)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue