Hello,
As I was testing various algorithms I had implemented in one of my projects, I noticed an interesting bug that was related to multi-selection.
Within PHPRunner, on the "Editor" section of the project manager, one can choose how to allow users to edit a particular field. One of the options, when you utilize a look-up table, is a multi-selection option.
The particular problem I have encountered is that when I go to edit a record and select something in the multi-selection area and click "Save", for example, the record is properly updated with the selected value. Continuously selecting other values in combination with each other and saving works fine as well. However, an issue arises once I deselect all values in the multi-selection area: if I save after deselecting all values, these changes do not occur. No matter how I try, once I have saved a record with at least one value selected, I cannot have an empty selection. This, in particular, is rather important for the interface I am developing.
I have tested this on much simpler systems as well to see if this was native to PHPRunner and it appears it would be so. I could upload a demo project, but seeing as this should be easily recreated amongst all projects, I do not see the need.
Any input on how to resolve this would be greatly appreciated, although I highly suspect this would require the native PHPRunner code to be modified.
In an unrelated matter, I have two other less-critical issues to point out:
- I have also noticed that whenever I go to exit a project or load another project while working on another, I am always prompted with a message asking to save the current project. This occurs even if I save immediately prior and make no changes to the projects. Although this is not a particularly huge problem, it is worth noting.
- The syntax checker for PHP code does not recognize when a before comment "/" is placed without an end comment "/"; this in particular is a problem if one of the ending comments are forgotten in a button's server-side-code, because it will comment out all of the rest of the buttons after it in the "buttonhandler.php" file generated with the project is compiled
Once again, I appreciate any response.