View Issue Details

IDProjectCategoryView StatusLast Update
0000324Adventure PHP FrameworkNeues Feature // New Featurepublic2017-09-30 13:20
ReporterChristianAchatzAssigned ToChristianAchatz 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version3.4 
Target Version3.4Fixed in Version3.4 
Summary0000324: Extend API of SelectBoxTag to remove all or just single options
DescriptionThe API of SelectBoxTag (i.e. used within controller or tag code) has no option to remove all or single options or option groups. Previously filled select boxes can thus not be manipulated afterwards.

Relevant use case: DateSelectorTag cannot be manipulated within controller when "yearange" parameter does not help to implement use case. See details in discussion under https://adventure-php-framework.org/forum/viewtopic.php?f=5&p=20582.
TagsNo tags attached.
Codereferenz: ([Datei]:[Zeile])
Namespacetools

Activities

ChristianAchatz

2017-09-30 13:16

administrator   ~0000795

See changes under https://github.com/AdventurePHP/code/commit/54582497a00bd9a1210c62a3c14f87b4daf2d546 and https://github.com/AdventurePHP/code/commit/fbe8d2f36a3ed4b30a2d8d6114783c5443325ce7. Removing options and group options can now be conducted as follows:

$select->removeOption('2'); // selection by value
$select->removeOption('Four'); // selection by display name

Removing all options and groups works as follows:

$select->removeAllOptions();

Issue History

Date Modified Username Field Change
2017-09-26 16:30 ChristianAchatz New Issue
2017-09-26 16:30 ChristianAchatz Status new => assigned
2017-09-26 16:30 ChristianAchatz Assigned To => ChristianAchatz
2017-09-30 13:16 ChristianAchatz Note Added: 0000795
2017-09-30 13:20 ChristianAchatz Status assigned => resolved
2017-09-30 13:20 ChristianAchatz Resolution open => fixed
2017-09-30 13:20 ChristianAchatz Fixed in Version => 3.4