This is a known bug in AwoCoupon 1.3.0 and 1.3.1. Will be fixed in the next release.
To fix this bug, please access the file
www/administrator/components/com_awocoupon/views/coupon/tmpl/default.php, around line 192, you will see these lines
change it to
And before the last lines in the same file
add this code
That should fix that problem.
To fix this bug, please access the file
www/administrator/components/com_awocoupon/views/coupon/tmpl/default.php, around line 192, you will see these lines
<?php
$string = '';
foreach($this->userlist as $tmp) $string .= '<option value="'.$tmp->user_id.':==:'.$tmp->last_name.', '.$tmp->first_name.' ('.$tmp->user_id.')">'.$tmp->last_name.', '.$tmp->first_name.' ('.$tmp->user_id.')</option>';
echo $string;
?>
change it to
<?php
$js_user = $js_usergroup = '';
$string = '';
$i =0;
foreach($this->userlist as $tmp) {
if(isset($this->row->userlist[$tmp->user_id])) $js_user .= 'document.adminForm.elements["_userlist"].selectedIndex='.$i.'; dd_itemselect("user");';
$string .= '<option value="'.$tmp->user_id.':==:'.$tmp->last_name.', '.$tmp->first_name.' ('.$tmp->user_id.')">'.$tmp->last_name.', '.$tmp->first_name.' ('.$tmp->user_id.')</option>';
$i++;
}
echo $string;
?>
And before the last lines in the same file
<?php
//keep session alive while editing
JHTML::_('behavior.keepalive');
?>
add this code
<script language="javascript" type="text/javascript">
var $j = jQuery.noConflict(); // added so jquery does not conflict with mootools
$j(document).ready(function() {
<?php
if(!empty($js_user)) echo $js_user.'document.adminForm.elements["_userlist"].selectedIndex=-1;';
if(!empty($js_usergroup)) echo $js_usergroup.'document.adminForm.elements["_usergrouplist"].selectedIndex=-1;';
?>
});
</script>
That should fix that problem.