View Issue Details

IDProjectCategoryView StatusLast Update
0015445phplist applicationUser Managementpublic20-04-10 00:57
Reporterh2b2 
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 ====
Ref: http://forums.phplist.com/viewtopic.php?p=74456#p74456
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
admin/page/importcsv.php

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

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

Activities

There are no notes attached to this issue.