Skip to content

Commit

Permalink
Fixed issue #11038: change of attribute content from <some content> t…
Browse files Browse the repository at this point in the history
…o <blank/nothing> doesn't stick
  • Loading branch information
LouisGac committed Jun 3, 2016
1 parent aa48ac3 commit 701aed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/participantsaction.php
Expand Up @@ -869,7 +869,7 @@ public function getParticipants_json($search = null)
// add attribute values
foreach($row as $key=>$attvalue)
{
if(preg_match('/^a\d+$/', $key))
if(preg_match('/^a\d+$/', $key) )
{
$aRowToAdd['cell'][] = $attvalue;
}
Expand Down Expand Up @@ -1098,7 +1098,7 @@ public function delAttributeValues()
*/
public function editAttributevalue()
{
if (Yii::app()->request->getPost('oper') == "edit" && (Yii::app()->request->getPost('attvalue') || Yii::app()->request->getPost('attvalue')=="0"))
if (Yii::app()->request->getPost('oper') == "edit" && isset($_POST['attvalue']))
{
$pid = explode('_',Yii::app()->request->getPost('participant_id'));
$iAttributeId = Yii::app()->request->getPost('attid');
Expand Down

0 comments on commit 701aed6

Please sign in to comment.