Download & Extend

Selects still enabled when dropbox limit reached

Project:Hierarchical Select
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Wim Leers
Status:closed (fixed)

Issue Summary

My installation is a Drupal 6.14 up to date, and Hierarchical Select module snapshot is 6.x-3.x-dev (2009-Sep-25) .

Field HS Configuration:
Cache in a HTML 5 client-side database: is enabled.

$config = array(
  'config_id'       => 'taxonomy-4',
  'save_lineage'    => 0,
  'enforce_deepest' => 1,
  'entity_count'    => 0,
  'require_entity'  => ,
  'resizable'       => 0,
  'level_labels' => array(
    'status' => 0,
    'labels' => array(
      0 => '',
    ),
  ),
  'dropbox' => array(
    'status'    => 1,
    'title'     => 'All selections',
    'limit'     => 3,
    'reset_hs'  => 1,
  ),
  'editability' => array(
    'status' => 0,
    'item_types' => array(
      0 => '',
    ),
    'allowed_levels' => array(
      0 => 1,
    ),
    'allow_new_levels' => 0,
    'max_levels'       => 0,
  ),
);

When you reach maximal number of items, it notifies and siplays message correctly, but select box stills enabled so you can continue adding items...

I've attached a screenshot.

AttachmentSize
hs-limit.png13.76 KB

Comments

#1

Title:select stills enabled when limit reached» Selects still enabled when dropbox limit reached
Priority:normal» minor
Assigned to:Anonymous» Wim Leers
Status:active» postponed (maintainer needs more info)

Does this also happen when the HTML 5 client-side database cache is disabled?

#2

Yes! I tried it also, sorry for not commenting before!!

#3

Status:postponed (maintainer needs more info)» active

#4

Reproduced.

#5

Status:active» fixed

Also, the add button should remain disabled. Fixed that too.

- D6: http://drupal.org/cvs?commit=281976
- D5: http://drupal.org/cvs?commit=281978

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here