Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Bug Correction : Tokens, Attribute Fields

Bug Correction : Tokens, Attribute Fields 1 Jahr 6 Monate her #92948

  • lsga
  • lsgas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 4
  • Karma: 0
Hi, just to say I corrected a bug in LS => Token => Attribute fields.

Before, when you created various attribute fields, they didn't appeared in the token form (just the last one), wich was provoking a bug when one of the none shown attributes was mandatory.

I don't know where to submit bugs correction, so I do it here.

application/controllers/admin/tokens.php
tokens::_handletokenform
$aData['attrfieldnames']=array();
/*LS HACK !!*/
$lsAttrFields = array();
$aAdditionalAttributeFields = Survey::model()->findByPk($iSurveyId)->tokenAttributes;
foreach ($aAdditionalAttributeFields as $sField=>$aData)
{
	if (in_array($sField,$aTokenFieldNames))
	{
		$lsAttrFields[$sField]=$aData;
	}
}
$aData['attrfieldnames']=$lsAttrFields;

Now, all attributes are shown in token form. ;)
Letzte Änderung: 1 Jahr 6 Monate her von lsga.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Bug Correction : Tokens, Attribute Fields 1 Jahr 5 Monate her #92968

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6256
  • Dank erhalten: 799
  • Karma: 239
Hello,
lsga schrieb:
Hi, just to say I corrected a bug in LS => Token => Attribute fields.

Before, when you created various attribute fields, they didn't appeared in the token form (just the last one), wich was provoking a bug when one of the none shown attributes was mandatory.
Don't understand, just try with last GIT version and it work.
I:
- Create 8 attribute, click "Add fields"
- Click add ne token entry : and have all atribute.

I don't know where to submit bugs correction, so I do it here.
www.limesurvey.org/en/community-services/bug-tracker :)

And for patch :
github.com/LimeSurvey/LimeSurvey

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.186 Sekunden
Donation Image