mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +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 = new stdClass();
|
||||||
$args->upload_target_srl = $upload_target_srl;
|
$args->upload_target_srl = $upload_target_srl;
|
||||||
|
$args->old_isvalid = 'N';
|
||||||
if($upload_target_type)
|
if($upload_target_type)
|
||||||
{
|
{
|
||||||
$args->upload_target_type = substr($upload_target_type, 0, 3);
|
$args->upload_target_type = substr($upload_target_type, 0, 3);
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,6 @@
|
||||||
</columns>
|
</columns>
|
||||||
<conditions>
|
<conditions>
|
||||||
<condition operation="equal" column="upload_target_srl" var="upload_target_srl" filter="number" notnull="notnull" />
|
<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>
|
</conditions>
|
||||||
</query>
|
</query>
|
||||||
|
|
|
||||||
|
|
@ -155,6 +155,10 @@ class memberAdminController extends member
|
||||||
// Save Signature
|
// Save Signature
|
||||||
$signature = Context::get('signature');
|
$signature = Context::get('signature');
|
||||||
$oMemberController->putSignature($args->member_srl, $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');
|
$profile_image = Context::get('profile_image');
|
||||||
if(is_uploaded_file($profile_image['tmp_name']))
|
if(is_uploaded_file($profile_image['tmp_name']))
|
||||||
|
|
|
||||||
|
|
@ -1255,6 +1255,10 @@ class memberController extends member
|
||||||
// Save Signature
|
// Save Signature
|
||||||
$signature = Context::get('signature');
|
$signature = Context::get('signature');
|
||||||
$this->putSignature($args->member_srl, $signature);
|
$this->putSignature($args->member_srl, $signature);
|
||||||
|
if($config->member_allow_fileupload === 'Y')
|
||||||
|
{
|
||||||
|
getController('file')->setFilesValid($args->member_srl, 'sig');
|
||||||
|
}
|
||||||
|
|
||||||
// Get user_id information
|
// Get user_id information
|
||||||
$member_info = MemberModel::getMemberInfoByMemberSrl($args->member_srl);
|
$member_info = MemberModel::getMemberInfoByMemberSrl($args->member_srl);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue