If an argument is not set, then views boxes sets the value to the argument exception value (ie "all"). This bypasses any setting for "When the filter value is NOT available". If "all" is the desired implementation then the setting for "When the filter value is NOT available" can be set to "Display all results for the specified field".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

recrit’s picture

Status: Active » Needs review
FileSize
564 bytes

The attached patch sets the value to NULL if missing. This allows views to use the setting for "When the filter value is NOT available".

hefox’s picture

recrit’s picture

@hefox - it's the same issue but the fix in #1345282: Default argument behavior is bypassed introduces a new token processed in the admin title. The patch in this issue simply follows the views default fallback which could be set to "all" if the option is set to "Display all results for the specified field".

hefox’s picture

The other issue is significantly older issue -- could you please add your patch there and close this issue as closed (duplicate)? Introducing a different way to fix a bug is completely okay/fairly common in an existing issue.

Thanks

recrit’s picture

Status: Needs review » Closed (duplicate)

posted to 1345282 as views_boxes-filter-not-available-1345282-5.patch