I dont have the code here to give the example but dont you think that its much better to block the visibility within css or the SearchForm method itself instead of commenting the method in the abstract class?
The result is the same but I would do it much more simple and cleaner to keep the changes after an update.
Can I maybe ask why the searchform shouldn`t be visible? there are a lot of other search forms wich can be used instead. So this is not the solution to create a kind of permission restriction.
Maybe there is a better idea for your need ;)
/Stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My intention is to keep the form closed and use it only when I need it, for saving screen space reason.
The search form is closed in any shortcut menu I created, but in "all open incidents", for example, is open and take a lot of screen. Even if I close it, after page refresh it reappears.
thanks,
Adrian
Last edit: Adrian 2013-05-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How to set search_form be hidden by default?
thanks,
Hello Adrian,
At present you have no such facility to hide form but you have to comment on hardcode
so in cmdabstract.class.inc.php you have to do commenting in
public static function DisplaySearchForm(WebPage $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
{
so your search_form donot appear..
I don
t have the code here to give the example but don
t you think that its much better to block the visibility within css or the SearchForm method itself instead of commenting the method in the abstract class?The result is the same but I would do it much more simple and cleaner to keep the changes after an update.
Can I maybe ask why the searchform shouldn`t be visible? there are a lot of other search forms wich can be used instead. So this is not the solution to create a kind of permission restriction.
Maybe there is a better idea for your need ;)
/Stefan
My intention is to keep the form closed and use it only when I need it, for saving screen space reason.
The search form is closed in any shortcut menu I created, but in "all open incidents", for example, is open and take a lot of screen. Even if I close it, after page refresh it reappears.
thanks,
Adrian
Last edit: Adrian 2013-05-24