View Issue Details

IDProjectCategoryView StatusLast Update
0015445phpList 3 applicationAdmin Managementpublic20-04-10 01:57
Reporterh2b2 Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version2.10.10 
Target Version2.10.12Fixed in Version2.10.12 
Summary0015445: Imported blank checkbox attributes are displayed as "checked" on a user's preferences page
DescriptionReported by zeb4dev on the forum:
==== Start Quote ====
When importing users with 1st item "import emails adresses with different attributes"

When the checkbox value is blank, phplist writes by default "off" during import.

When looking at a user, phplist knows that "blank" means "unchecked", and "off" is displayed as "unchecked"

But "the preference page"
- doesn't know that "off" means "unchecked"
- decides that "not blank" means "checked"
==== End Quote ====
Additional InformationThis is the workaround used by zeb4dev:
==== Start Quote ====
2 solutions possible:
-during import, block the "off" written when the cell is blank
-displaying preference pages, translate "off" and blank by "unchecked"
in the file

line 611
$user_att_value = "off";
$user_att_value = "";

checkbox data shown on preferences pages are now fine
==== End Quote ====
TagsNo tags attached.


There are no notes attached to this issue.