Selects still enabled when dropbox limit reached

Nosfe - September 25, 2009 - 11:20
Project:Hierarchical Select
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Wim Leers
Status:closed
Description

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

#1

Wim Leers - September 25, 2009 - 13:16
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

Nosfe - September 26, 2009 - 07:56

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

#3

Nosfe - September 28, 2009 - 15:34
Status:postponed (maintainer needs more info)» active

#4

Wim Leers - October 6, 2009 - 19:29

Reproduced.

#5

Wim Leers - October 31, 2009 - 00:57
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

System Message - November 14, 2009 - 01:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.