Bug in publish for select handling

Permalink Browser Info Environment
Hello

There is a bug appearing when there are two selects assigned to page attributes. The array used to fill in the values is not reset, so the second select attribute will also get set the values of the previous.

This can be fixed by adding unset($values_array); in the part of the code where the select attribute is handeld in the publish-Attribute controller in \proforms\models\attribute\types\publish\controller.php

In my code it is line 300, but it will not match yours as I have made some other changes/bugfixes. Search for:

if($cak && $cak->getAttributeType()->getAttributeTypeHandle() == 'select')

Please let me know when you have added this fix to your code.

Best Regards,
Daniel

Type: Discussion
Status: In Progress
View Replies:
RadiantWeb replied on at Permalink Reply
RadiantWeb
Hi there,

This is an auto responder to let you know that your support ticket has been forwarded to our entire support team at RadiantWeb!

Support tickets are reviewed Mondays thru Fridays 9am to 9pm & Saturdays 9am to 12pm EST.

A support team member will be following up with you as soon as possible.

Thank for supporting RadiantWeb Products!

RadiantWeb Support
http://goradiantweb.com
RadiantWeb replied on at Permalink Reply
RadiantWeb
Thank you for the input. Noted and added to master.

ChadStrat

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
301 Redirects (2.2.1), Accordion Menu (2.0), Advanced Page List (1.0.3), Advanced Slider (2.0.1), AJAX Member Directory (1.0.1), All In: The Advanced User Import Add-on (2.0), Auto-Nav Pro (1.5.5), Avatar (0.9.3), Bookmarks (1.1.4), Bootstrap Buttons (3.0.0.2), Bootstrap Image Gallery (3.0.0.5), Concrete Wall (2.2.3), Concrete Wall Share (2.0.1), Content+ (1.2), Content Slider (1.2.5), Discussion (1.8.6), Disqus Comments (0.5.1), Document Library (1.6.4), Dynamic Iframe (1.61), Easy Accordion (1.1.2), Easy tabs (1.7.2), Elegancia Neu (1.0), Elements (1.0.1), Encrypted E-Mail Address (1.1.3.1), Enhanced User List (1.6.0), Facebook Comments (1.4), Facebook Like Button (1.1), Flash Audio (1.3.4), Front End Uploader (1.4.0.1), Galleria image gallery (2.0), GalleryBox (1.6.8.2), Google Map (Premium) (2.1), green (1.0), Iframe (1.0), Image Slider (1.1), Internationalization (1.3), Like Button (1.0), Login (1.1.1), Magic Tabs (1.1.0.1), Mailing List (2.54), Mail Monkey (2.1.2), MindNet Browser Update Notification (1.1), Multiple Domains (1.4.1), Navi Box (1.0), Page List Teasers (1.2), Page Properties (1.0.1), Page Table (1.1), PC5 Custom Templates (3.5), Personalized Hello (1.1.1), PHP block by ND (1.0), Popup Pro (1.6.7), Print my page (1.0.3), Pro Blog (12.4.0), Pro Events (11.0.6), Profile Alerts (1.0.0), Pro Forms (7.5.5), Pro Media (7.5.0), Pro News (5.0.2), Recent Comments (1.0), Redirect (1.1), Register User Pro (1.3.13), Registrant Group (1.1), RSS Feed Creator (1.24), SharingBox (1.3.3.2), Simple Blue (1.1), SimpleNews (5.0.0), Sisimizi's Download Folder (1.0), Slate Theme (1.5.3.1), Social Icons Reloaded (2.0), Social Login (1.2), Stickies (1.2.3), The Void theme (1.0), tnSpacer (1.3), Translations Manager (1.3.1), Tweeter (1.0.11), User Info (1.97), Users' Pages (1.0.1), Vimeo Player (1.0.6).

# concrete5 Overrides
blocks/guestbook, blocks/gallerybox_recent, blocks/pronews_list, blocks/pmw_enhanced_user_list, blocks/proforms, blocks/page_list, blocks/pro_event_list, controllers/xlsdata.php, controllers/ical.php, controllers/csvimpexp.php, elements/profile, helpers/concrete, helpers/navigation.php, helpers/avatar.php, languages/de_DE, libraries/request.php, single_pages/sms, single_pages/login.php, single_pages/register.php, single_pages/profile, single_pages/xlsdata, single_pages/ical, single_pages/csvimpexp, themes/themes, themes/greek_yogurt, tools/users

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.5.18

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 300
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 32M
sql.safe_mode - Off
upload_max_filesize - 80M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.