Attribute set none

Permalink 60 56 Browser Info Environment
The Commerce plugin is installed, which creates the attribute sets Billing and Shipping. I have created a user attribute called 'Mobile'. The Mobile attribute was moved to the Billing set. When I edit the Mobile attribute to change the set back to 'None' it stays in the Billing set.


Status: New
mrnoisy
andrew replied on at Permalink Reply
andrew
Fixed in svn for 5.4.1. Here's a fix for 5.4.0.5:

Open concrete/models/attribute/key.php. Change these lines:

case AttributeKeyCategory::ASET_ALLOW_SINGLE:
   if ($asID > 0) {
      $as = AttributeSet::getByID($asID);
      if ((!$this->inAttributeSet($as)) && is_object($as)) {
         $this->clearAttributeSets();
         $this->setAttributeSet($as);
      }
   }
   break;


to these:

case AttributeKeyCategory::ASET_ALLOW_SINGLE:
   if ($asID > 0) {
      $as = AttributeSet::getByID($asID);
      if ((!$this->inAttributeSet($as)) && is_object($as)) {
         $this->clearAttributeSets();
         $this->setAttributeSet($as);
      }
   } else {
      // clear set
      $this->clearAttributeSets();
   }
   break;

concrete5 Environment Information

# concrete5 Version
5.4.0.5

# concrete5 Packages
Calendar (1.3), Discussion (1.5.1), Downloadable File Purchase (1.0.1), eCommerce (1.7.3), Login (1.0), Mailing List (1.34), Remo's User Import (1.0).

# concrete5 Overrides
blocks/calendar, blocks/rss_displayer, blocks/page_list, controllers/profile, elements/users, elements/profile, models/core_commerce, models/attribute, single_pages/login.php, single_pages/profile, single_pages/register.php, themes/engicom

# Server Software
Apache/2.2.3 (CentOS)

# Server API
apache2handler

# PHP Version
5.2.14

# PHP Extensions
apache2handler, bz2, calendar, ctype, curl, date, dbase, dom, exif, filter, ftp, gd, gettext, gmp, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Reflection, session, shmop, SimpleXML, sockets, SPL, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 30
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
memory_limit - 16M
post_max_size - 10M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 10M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729; .NET4.0C)