mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix #1607 denied/limited reason not being saved as extra vars
This commit is contained in:
parent
588520ff4b
commit
0986ddf87d
4 changed files with 25 additions and 15 deletions
|
|
@ -86,6 +86,13 @@ class memberAdminController extends member
|
|||
$extra_vars->{$formInfo->name} = $all_args->{$formInfo->name};
|
||||
}
|
||||
}
|
||||
foreach($this->admin_extra_vars as $key)
|
||||
{
|
||||
if (isset($all_args->{$key}))
|
||||
{
|
||||
$extra_vars->{$key} = escape(utf8_clean($all_args->{$key}));
|
||||
}
|
||||
}
|
||||
$args->extra_vars = serialize($extra_vars);
|
||||
|
||||
// Delete invalid or past limit dates #1334
|
||||
|
|
|
|||
|
|
@ -5,14 +5,13 @@
|
|||
* @author NAVER (developers@xpressengine.com)
|
||||
* high class of the member module
|
||||
*/
|
||||
class member extends ModuleObject {
|
||||
class member extends ModuleObject
|
||||
{
|
||||
/**
|
||||
* Use sha1 encryption
|
||||
*
|
||||
* @var boolean
|
||||
* Extra vars for admin purposes
|
||||
*/
|
||||
var $useSha1 = false;
|
||||
|
||||
public $admin_extra_vars = ['refused_reason', 'limited_reason'];
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1167,6 +1167,13 @@ class memberController extends member
|
|||
$extra_vars->{$formInfo->name} = $all_args->{$formInfo->name};
|
||||
}
|
||||
}
|
||||
foreach($this->admin_extra_vars as $key)
|
||||
{
|
||||
if (isset($logged_info->{$key}))
|
||||
{
|
||||
$extra_vars->{$key} = $logged_info->{$key};
|
||||
}
|
||||
}
|
||||
$args->extra_vars = serialize($extra_vars);
|
||||
|
||||
// remove whitespace
|
||||
|
|
|
|||
|
|
@ -161,14 +161,9 @@
|
|||
dateFormat:'yy-mm-dd',
|
||||
defaultDate: new Date("{date('Y-m-d',time())}"),
|
||||
minDate: new Date("{date('Y-m-d',strtotime('-200 years'))}"),
|
||||
|
||||
onSelect:function(){
|
||||
$(this).prev('input[type="hidden"]').val(this.value.replace(/-/g,""))
|
||||
if($('#until').val()){
|
||||
limited_reason_division.slideDown(200);
|
||||
} else {
|
||||
limited_reason_division.slideUp(200);
|
||||
}
|
||||
$('.div_limited_reason').slideDown(200);
|
||||
}
|
||||
};
|
||||
$.extend($.datepicker.regional['{$lang_type}'],option);
|
||||
|
|
@ -177,10 +172,13 @@
|
|||
$(".inputDate").datepicker(option);
|
||||
} else {
|
||||
$(".inputDate").prop('readonly', false);
|
||||
$(".inputDate").on('change', function() {
|
||||
$('.div_limited_reason').slideDown(200);
|
||||
});
|
||||
}
|
||||
$(".dateRemover").click(function() {
|
||||
$(this).prevAll('input').val('');
|
||||
limited_reason_division.slideUp(200);
|
||||
$('.div_limited_reason').slideUp(200);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
|
@ -201,10 +199,9 @@
|
|||
}
|
||||
});
|
||||
|
||||
var limited_reason_division = $('.div_limited_reason');
|
||||
if(!$('#until').val())
|
||||
{
|
||||
limited_reason_division.hide();
|
||||
$('.div_limited_reason').hide();
|
||||
}
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue