internal > Feature (done?)

added bookmark should always display itemMonitorEdit (or similar) Form / #3539

Summary

done?
Dec 24, 2006
100%
Dec 24, 2006 / pixtur
May 4, 2007 / burger
burger
 

Attached files

No files uploaded
When I create a new bookmark (e.g. with the ContextMenu of a task list), there should be an intermediate page with a small form asking for "Name", "Comment", "Monitor" etc.
After the bookmarks are added, a Feedback Message should be rendered and we should jump to the original page.

9 Comments

burger

Jan 12, 2007
Question
Can you explain what you mean exactly?


burger

Jan 12, 2007
Some more questions
Thanks for your annotations.

But I have some more questions:
  1. Exists a possibility to call the itemMonitorEdit form out of the itemIsBookmark function and return afterwards to this function?
--> It isn't or? The FromPage and the Edit form would be always shown together, or?!
  1. I thought about storing the item(s) who will be marked as bookmark in an array and call the itemMonitorEdit function like

from pages/items.inc.php

$PH->show('itemMonitorEdit', array('bookmarks'=>bookmarkitems_array));

But I think it isn't possible to pass an array within an array :-)?!

At the moment I'm a little bit "uninspired" regarding the handling of this problem.

Do you have a suggestion how to solve it?

pixtur

Jan 13, 2007
where is the difference to taskEdit?
If you are a any page that features a taskEdit function (e.g. projViewTasks), you can jump to taskEdit with an "From" Handle. Finally , after taskEdit and taskEditSubmit, $PH->showFromPage() is called, which displays projViewTasks again.

Although adding Arrays to Arrays would work under normal conditions, it will fail here, because the attributes are stored in the _tmp-dir with the From handle as hash key. The attributes are stored in a flat URL list like...

 go=projViewTasks&tsk=23&display=normal

This does not allow hierarchical structures.

burger

Jan 18, 2007
version 2
Difference
The difference is that I have more possibilities to add or edit bookmarks.
  1. Task/Project/Person ... View (I can add one new bookmark)
  1. Task/Project/person ... Lists (I can add multiple bookmarks)
  1. Bookmark List (I can edit one (at the moment) bookmark)
Furthermore if I add e.g. a new task then I can be sure that it is not in the database.
Whereas the item can already be in the streb_personitem table but the attribut is_bookmarkis set to false.

So in this case there are more facts to keep in mind than at the tasksEdit function.

But I'm sure I will somehow handle this :-).


pixtur

Jan 19, 2007
Believe me...
... it cannot be more than in taskEdit :) Check the bottom of taskEditSubmit and how much is validated there before returning to the original page (think about task assignments and issue reports).

If you get struck, we could have another skype session today.

burger

Jan 19, 2007
version 2
Comment
It is a little bit different von TaskEdit, but I already solved it.

But there is one part in the code which isn't really nice, but I hope you'll help me to find a better solution :-).

The code isn't committed yet, because I will implement the itemMonitorEditMultiple first.

pixtur

Jan 19, 2007
ok...
looking forward to review it :)

burger

Jan 26, 2007
Changed and committed ...
Please check if it's okay.
There are some code lines (to transfer the ids) I'm not happy with. I commented them. So maybe you can have a more precise look at them.

pixtur

Jan 30, 2007
 

Comment / Update