Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#2525 closed defect (fixed)

Access Memebers funktioniert nicht

Reported by: berger Owned by: comvation
Priority: normal Milestone: Cloudrexx 5.0
Component: Access Version: trunk
Severity: normal Keywords:
Cc:

Description

Wenn bei den Profilattributen ein zusätzliches Attribut mit dem Typen "Auswahlmenu" erstellt wird, kann im eingeloggten Zustand die Seite "Access Memebers" nicht mehr angezeigt werden.

Der Fehler scheint in der access/lib/AccessLib.class.php in der Funktion parseAttribute() zu sein. Es scheint als könnte $arrPlaceholders nicht erstellt werden.

Change History (3)

comment:1 Changed 3 years ago by berger

  • Milestone set to Cloudrexx 5.0
  • Version changed from 4.0 to trunk

fixed in e9d3c131d20f3b254c7c7bf29477d400af75dabd in trunk and ca056c316b862c5e9cf43da8ec3015f034d56161 in branch contrexx_4_0

fix: core_modules/access/lib/AccessLib.Class.php ~row120

replace: $objSelectedAttribute = $objAttribute->getById($objUser->getProfileAttribute($objAttribute->getId(), $historyId));

with: if menu is not set, the function returns false and we need to set 0 "Please select" as selected value if($objUser->getProfileAttribute($objAttribute->getId(), $historyId) !== false){

$objSelectedAttribute = $objAttribute->getById($objUser->getProfileAttribute($objAttribute->getId(), $historyId));

}else{

$objSelectedAttribute = $objAttribute->getById(0);

}

Last edited 2 years ago by michael.ritter (previous) (diff)

comment:2 Changed 3 years ago by berger

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 3 years ago by berger

its not ~row120 it is ~row1020

Note: See TracTickets for help on using tickets.