phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
312 core / field option feature always 2005-02-25 09:25 2005-03-05 19:26
brycenesbitt  
 
normal  
feedback 5.4 (stable)  
open  
none  
none  
'Add only' not supported
I tried setting options:

// Options you wish to give the users
// A - add, C - change, P - copy, V - view, D - delete,
// F - filter, I - initial sort suppressed
$opts['options'] = 'A';

On the small hope that I would get an "add" only page. But, alas, it does not work.

Bug Notes
nepto   
2005-02-25 17:39   
I believe you got list page with Add option only.
brycenesbitt   
2005-02-25 17:44   
Yes, but since [V]iew was not enabled, I had expected there would be
no list page. The client could still see all the database entries.
nepto   
2005-02-25 17:48   
Is he able to view any of the database entries?

I believe not.
brycenesbitt   
2005-02-25 17:50   
Try it! It's just one line. You'll still see database entries even with [V]iew off.
nepto   
2005-02-25 18:02   
That is the matter of your list page configuration. You can configure phpMyEdit to have only ID column at the list page or have no column there at all.

What I was talking about is the fact, that view action is forbidden when 'V' flag is not present. Just try to invoke View page and you will see.
hbernard   
2005-03-05 10:20   
The reason List mode is enabled is that in most of the case, you _may_ want to display back to the user the records it added.

If you don't want anything to be displayed but the 'Add' button, you may use
$opts['filters'] = '0 = 1' or allways false statement, in order to not have any record displayed.
brycenesbitt   
2005-03-05 17:27   
That works, thanks.

Now I just need to adjust my JOINs....
nepto   
2005-03-05 19:26   
So how about this? A candidate for Hints & Tips? :-)