Re: [Tiki-devel] Page Selector auto-fill not working
Armando Stylianakis <[email protected]> Thu, 30 Nov 2023 19:55:17 +0200
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <CAKqywryWT3JBmSS46iMs+6o6UZaL7dkWA675QDi0_O2fEbYoKw@mail.gmail.com> |
I tried this, and although the tracker item appeared only in the correct
page, the page selector field still did not contain the value of the page
in which the item was created.
Also, I started getting some weird errors, so I suspect the database was
compromised somehow.
if ($autoassign == 1) {
global $page;
$value = $page;
} else {
$value = isset($requestData[$ins_id])
? $requestData[$ins_id]
: $this->getValue();
}
Armandos
On Mon, 27 Nov 2023 at 00:34, Armando Stylianakis <[email protected]>
wrote:
> Hi Roberto,
>
> I have updated the bug on TikiWiki's bug tracker (
> https://dev.tiki.org/item4242-Page-Selector-field-not-populated-with-wiki-page-name
> ).
>
> This is a screenshot of the option in question.
>
> [image: image.png]
>
> The expected behavior would be that when a tracker item is created, and
> the auto-assign parameter is set to "Yes" (or 1), the Page Selector field
> would behave as described here <https://doc.tiki.org/Page-selector>.
>
> i.e. the field will take the page name of the page in which the tracker
> item was created in.
>
> In the bug report, I have found that PageSelector lacks the code to check
> if Auto-Assign is set to 1, like it is in for example UserSelector.
>
> Hope this helps!
>
>
>
> On Sun, 26 Nov 2023 at 18:03, Roberto Kirschbaum <[email protected]>
> wrote:
>
>> Hi Armando,
>>
>> Not sure, but I'm also interested in this fieldtype these days.
>> Please, can you give us a screenshot of "Auto-Assign is selected from the
>> parameters pop-up" so I can try to reproduce it?
>> Also, what version of Tiki would that be?
>>
>> thanks
>>
>> On Sat, Nov 25, 2023 at 6:17 PM Armando Stylianakis <
>> [email protected]> wrote:
>>
>>> Has anyone come across the bug with the Page Selector not being
>>> populated by the current page name when Auto-Assign is selected from the
>>> parameters pop-up?
>>> _______________________________________________
>>> TikiWiki-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>>
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
image.png
(image/png, 19.4 KB) - not displayed