Problem with Pattern Text field and field "Calculation/Fonction"

Post Reply
miguel_sousa
Posts: 19
Joined: 30 Jun 2016, 17:43
Name: Miguel SOUSA
Location: Paris
Company Name: In Extenso

Problem with Pattern Text field and field "Calculation/Fonction"

Post by miguel_sousa »

Hi Sergey,

I found a new issue and is very important for me to solved:
Field error type Pattern Text - Functions.PNG
When I use the "pattern text" field whit ID Fields and text, when I use a field of "calculation or fonction" to put him in the text he not shows the value!!

But when I do a Repport with this field the Title " Libellé" shows the amount very well..
Field error type Pattern Text - Functions (2° Img).PNG
Dont works when I used it as "entities" field in the listing:
Field error type Pattern Text - Functions (3° Img).PNG
Can you see that the soonest as possible?

This new field is very interesting and helpfull..

Thanks
Miguel
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Problem with Pattern Text field and field "Calculation/Fonction"

Post by support »

Hi

Thank you for report about this issue.

Found it and fixed. To fix this rewrite attached file to
includes\classes\fieldstypes\fieldtype_text_pattern.php

Let me know if it works ok now.
Attachments
fieldtype_text_pattern.php
(4.96 KiB) Downloaded 415 times
miguel_sousa
Posts: 19
Joined: 30 Jun 2016, 17:43
Name: Miguel SOUSA
Location: Paris
Company Name: In Extenso

Re: Problem with Pattern Text field and field "Calculation/Fonction"

Post by miguel_sousa »

Sergey I have change the file for the listing is ok I have the amount..
Listing OK Field type Pattern Text - Functions (1° Img).PNG
Right know the page of the field give me a error of calculation or the formula..

Before I change, works good without error, right know as you can see in my screenshot gives me a error:
Field error type Pattern Text - Functions (4° Img).PNG
its strange the system make the calculation even with this message :?:


in title of the page i dont have the amount and in the popup window also, is normal??

Thanks for your help
Miguel
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Problem with Pattern Text field and field "Calculation/Fonction"

Post by support »

Found this issue too!

Please do next:
1. Load two new files to
includes/plugins.php
includes/plugins_menu.php
2. rewrite
/index.php

Note: this is not much changes to fix this issue, I just exploded file available_plugins.php because in current way it did not include class functions to calculated function for heading in right way

Let me know if it works ok now
Attachments
plugins_menu.php
(411 Bytes) Downloaded 369 times
plugins.php
(807 Bytes) Downloaded 401 times
index.php
(840 Bytes) Downloaded 388 times
miguel_sousa
Posts: 19
Joined: 30 Jun 2016, 17:43
Name: Miguel SOUSA
Location: Paris
Company Name: In Extenso

Re: Problem with Pattern Text field and field "Calculation/Fonction"

Post by miguel_sousa »

Hi Sergey,
Thanks for solving the problem very fast ..

Everithing is OK the amount shows in the page also in the listing and the erreur of calculation shows anymore..

The only thing that is not good is the window pop-up the amount not shows please see my image:
Field error type Pattern Text - Functions (5° Img).png
Is not urgent but with this, the issue at the start is solved..
Thanks
Miguel
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Problem with Pattern Text field and field "Calculation/Fonction"

Post by support »

Found and fixed this issue too.

To fix this just replace attached file to:
includes\classes\fieldstypes\fieldtype_entity.php

Let me know if it works ok now.
Attachments
fieldtype_entity.php
(8.27 KiB) Downloaded 421 times
miguel_sousa
Posts: 19
Joined: 30 Jun 2016, 17:43
Name: Miguel SOUSA
Location: Paris
Company Name: In Extenso

Re: Problem with Pattern Text field and field "Calculation/Fonction"

Post by miguel_sousa »

Hi Sergey is perfect..

Below the image:
Field error type Pattern Text - Functions (6° Img) - Solved.png
Everything is ok know this issue is solved - Cool!!! ;)

Thanks Sergey

Dont forget to find a solution for my other bug when you have the time..

Miguel SOUSA
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Problem with Pattern Text field and field "Calculation/Fonction"

Post by support »

Dont forget to find a solution for my other bug when you have the time..
Yes, I'm working on it too

Also I have question about translation for you, check Private Messages on this forum, please
Post Reply