NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015445phplist applicationUser Managementpublic18-04-10 20:3420-04-10 01:57
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
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: [^]
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.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker