phplist

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
0015614phplist applicationConfigurationpublic17-05-11 21:4308-08-11 21:25
Reportersfatula 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformLinuxOSCentosOS Version5.5
Product Version2.10.14 
Target Version2.10.XFixed in Version2.10.15 
Summary0015614: Configuring Attributes does not save order, default, and, required
DescriptionWhen using phpList as suggested with register_globals off, the values for the fields "order of listing", "default value", and "is the attribute required" are not saved when clicking save changes.

Steps To ReproduceTuen off register_globals in php, enter values in the fields that I said do not work, and, click save changes. They won't save.
Additional InformationThe reason can be traced to commonlib/pages/attributes.php, the following line:

        $query = sprintf('update %s set name = "%s" ,type = "%s" ,listorder = %d,default_value = "%s" ,required = %d where id = %d',
        $tables["attribute"],addslashes($_POST["name"][$id]),$_POST["type"][$id],$listorder[$id],$default[$id],$required[$id],$id);

Note that $listorder, $default, and $required are missing the $_POST. The line SHOULD read:

        $query = sprintf('update %s set name = "%s" ,type = "%s" ,listorder = %d,default_value = "%s" ,required = %d where id = %d',
        $tables["attribute"],addslashes($_POST["name"][$id]),$_POST["type"][$id],$_POST["listorder"][$id],$_POST["default"][$id],$_POST["required"][$id],$id);

Which then allows the screen to work with register globals off. WHich is good of course since it is deprecated in php 5.3.0
TagsNo tags attached.
Attached Files

- Relationships
has duplicate 0015612resolvedmichiel Attributes' order of listing on subscribe page cannot be saved (not fixed in 2.10.13) 

-  Notes
(0051354)
sfatula (reporter)
19-05-11 18:15

I do not believe this to be a duplicate. The other case is talking about making subscribe pages. This has nothing to do with that, and, talks about additional fields as well.
(0051383)
duncanc (developer)
20-07-11 22:55

I can confirm that this is still a problem in 2.10.14
On the page lists/admin/?page=attributes with two attributes displayed, changes to the "order of listing", "default value" or the "attribute required" field are not saved.

This is with register_globals set to off.
(0051391)
michiel (manager)
08-08-11 21:25

http://phplist.svn.sourceforge.net/phplist/?rev=2800&view=rev [^]


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker