Deprecated: Joomla\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 41

Deprecated: Return type of Joomla\Input\Input::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 170
Resolved: issue by project - Page 3 - Macrotone Forum

Unknown Error 8192: KunenaControllerApplicationDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in libraries/kunena/controller/application/display.php on line 21


Unknown Error 8192: ComponentKunenaControllerWidgetAnnouncementDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/widget/announcement/display.php on line 18


Unknown Error 8192: ComponentKunenaControllerTopicItemDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/display.php on line 25


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/forum/category/category.php on line 415


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/route/route.php on line 437


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/bbcode/bbcode.php on line 107

Resolved: issue by project


Unknown Error 8192: ComponentKunenaControllerTopicItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/actions/display.php on line 23


Unknown Error 8192: ComponentKunenaControllerTopicPollDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/poll/display.php on line 21


Unknown Error 8192: ComponentKunenaControllerTopicItemMessageDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/message/display.php on line 23

11 years 7 months ago #13 by clovis802
Replied by clovis802 on topic Re: issue by project
Thanks, Geoffc:)

This is done.

I did that so I placed this code:







I took that code page config.xml with cpanel it shows that the drop in the "param" when creating the menu "create issue" page that takes into account the frontend, so the form will work in my choice :)

but if I remove the "COM_ISSUETRACKER_ISSUE_DETAILS_LEGEND" I do not want to see, there is an error when validating the form.

Unknown Error 8192: ComponentKunenaControllerMessageItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/message/item/actions/display.php on line 25

The topic has been locked.
11 years 7 months ago #14 by clovis802
Replied by clovis802 on topic Re: issue by project
Sorry, this code:

fields name="params">
fieldset name="basic" addfieldpath="/administrator/components/com_issuetracker/models/fields">
field name="def_project" type="issuetrackerprojectbe"
section="com_issuetracker" default="0"
label="COM_ISSUETRACKER_CONFIG_DEFAULT_PROJECT_LABEL"
description="COM_ISSUETRACKER_CONFIG_DEFAULT_PROJECT_DESCRIPTION"
required="false" />
/fieldset>
/fields>
The topic has been locked.
11 years 7 months ago #15 by geoffc
Replied by geoffc on topic Re: issue by project
Look at the screen shot I posted earlier.

As I said in the original code post, you have to replace the leading exclamation mark ( ! ) with the less than sign ( < ). I can't show it in this forum since the (silly) editor treats it special. The screen shot shows it as it should be.


I am not so sure about removing the Legend text section. There are a few other shown parameters that are required when an issue is saved, so removing the whole section may well create other errors. (identified_by being one if you are letting registerd users create items.)

To fix the validation errors caused by the removal of the text section you will have to edit the front end file components/com_issuetracker/models/itissues.php. There are two function in that file store() and _setdefaults() which will need modification to pick up the values from the environment or to set a default.

Fields to check include the identified_by_person_id, identified_date, related_project_id (the field you want set), issue_type, priority and notify.

If you just didn't want the project displayed, one could remove the four lines in the 'DETAILS_LEGEND' section and in the itissues.php file, use some of the sample code that we used in the other file to get the menu itemid and hence pick up the project id to set in the issue.

Edited by geoffc - 21.09.2012 18:51

Regards
Geoff
The topic has been locked.
11 years 7 months ago #16 by clovis802
Replied by clovis802 on topic Re: issue by project
can we make it invisible?
I have to hide this part.

thanks:)
The topic has been locked.
11 years 7 months ago #17 by geoffc
Replied by geoffc on topic Re: issue by project
Are you talking about the whole 'DETAILS_LEGEND' section or only the project id?

If it only the project id, then as I said earlier, you could remove the four line (around 124->127). You would also have to add some code around line 456 in the models/itissues.php file something similar to:

// Get the Menu parameters to determine which projects have been selected.
// Unless we are a Issue Administrator since we may be editing the issue.
$minput = JFactory::getApplication()->input;
$menuitemid = $minput->getInt( 'Itemid' ); // this returns the menu id number so we can reference parameters
$menu = JSite::getMenu();
if ($menuitemid) {
$menuparams = $menu->getParams( $menuitemid );
$projects = $menuparams->get('projects');
}

and since we were allowing 'multiple' selects in the parameter, extract the first field in the projects array and set it in the $data array:

$data = $projects[0];

NOTE: I have not tried this and am going off code inspection. There may be other changes to consider as well.

This is also not I think something that would be considered as part of the standard release, as it goes against too many other considerations/requirements. Which means that you would have to 're-implement' your change every time a new version is released that you might want to implement.

Re the remaining fields in that section, identified_date, issue_type, priority and notify you could probably leave so that the correct default is set. The identified_by_person_id you can set to a value of 1 if it is a guest user raising the issue and you are not configured to automatically create non-registered users when a guest raises an issue. Or alternatively you get the $user->id value and pass it to the helpe routine:

$person_id = IssueTrackerHelper::get_itpeople_id($user->id);

and store the returned $person_id in the $data array.

AGAIN NOTE: I have not tried this and am going from a quick code inspection.

Edited by geoffc - 21.09.2012 19:14

Edited by geoffc - 21.09.2012 19:15

Regards
Geoff
The topic has been locked.
11 years 7 months ago #18 by clovis802
Replied by clovis802 on topic Re: issue by project
Thanks,

it's all that I want to hide section.

I understand for updates, I would be careful.
The topic has been locked.
Time to create page: 0.154 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries