mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #1417 set files as valid when signature is saved
This commit is contained in:
parent
f5562356b4
commit
1bd20e6d31
4 changed files with 11 additions and 1 deletions
|
|
@ -782,6 +782,7 @@ class fileController extends file
|
|||
{
|
||||
$args = new stdClass();
|
||||
$args->upload_target_srl = $upload_target_srl;
|
||||
$args->old_isvalid = 'N';
|
||||
if($upload_target_type)
|
||||
{
|
||||
$args->upload_target_type = substr($upload_target_type, 0, 3);
|
||||
|
|
|
|||
|
|
@ -8,5 +8,6 @@
|
|||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="upload_target_srl" var="upload_target_srl" filter="number" notnull="notnull" />
|
||||
<condition operation="equal" column="isvalid" var="old_isvalid" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -155,6 +155,10 @@ class memberAdminController extends member
|
|||
// Save Signature
|
||||
$signature = Context::get('signature');
|
||||
$oMemberController->putSignature($args->member_srl, $signature);
|
||||
if($config->member_allow_fileupload === 'Y')
|
||||
{
|
||||
getController('file')->setFilesValid($args->member_srl, 'sig');
|
||||
}
|
||||
|
||||
$profile_image = Context::get('profile_image');
|
||||
if(is_uploaded_file($profile_image['tmp_name']))
|
||||
|
|
|
|||
|
|
@ -1255,7 +1255,11 @@ class memberController extends member
|
|||
// Save Signature
|
||||
$signature = Context::get('signature');
|
||||
$this->putSignature($args->member_srl, $signature);
|
||||
|
||||
if($config->member_allow_fileupload === 'Y')
|
||||
{
|
||||
getController('file')->setFilesValid($args->member_srl, 'sig');
|
||||
}
|
||||
|
||||
// Get user_id information
|
||||
$member_info = MemberModel::getMemberInfoByMemberSrl($args->member_srl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue