Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relatedRecordsList on PDF module, condition not working for status_rel and comment_rel fields #21

Open
apcloic opened this issue Sep 27, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@apcloic
Copy link

apcloic commented Sep 27, 2022

Tested on gitstable.

Now that these 2 extra fields are available thanks to recent commit by yetiforce, I'm trying to get the list of contacts related to an Occurrence record where status_rel is equal to PLL_PRESENT.

See video at the end.


$(relatedRecordsList : Contacts|firstname,lastname,jobtitle,parent_id,email,mobile,status_rel,comment_rel|[[["status_rel","e","PLL_PRESENT"]]]|||)$

Debug log trace below.


2022-09-27 17:20:04.9624 [error][] - Not found field model | Field name: 'status_rel' in moduleContacts
2022-09-27 17:20:04.9626 [error][] - ERR_NOT_FOUND_FIELD_MODEL|status_rel|Contacts
App\Exceptions\AppException: ERR_NOT_FOUND_FIELD_MODEL|status_rel|Contacts in /web/yetiforce/app/QueryGenerator.php:1247
Stack trace:
#0 /web/yetiforce/app/QueryGenerator.php(1162): App\QueryGenerator->getQueryField('status_rel')
YetiForceCompany/YetiForceCRM#1 /web/yetiforce/app/QueryGenerator.php(1213): App\QueryGenerator->getCondition('status_rel', 'PLL_PRESENT', 'e', false)
YetiForceCompany/YetiForceCRM#2 /web/yetiforce/app/QueryGenerator.php(834): App\QueryGenerator->addCondition('status_rel', 'PLL_PRESENT', 'e', true)
YetiForceCompany/YetiForceCRM#3 /web/yetiforce/modules/Vtiger/models/RelationListView.php(215): App\QueryGenerator->parseAdvFilter(Array)
YetiForceCompany/YetiForceCRM#4 /web/yetiforce/modules/Vtiger/models/RelationListView.php(180): Vtiger_RelationListView_Model->loadCondition()
YetiForceCompany/YetiForceCRM#5 /web/yetiforce/modules/Vtiger/models/RelationListView.php(250): Vtiger_RelationListView_Model->getRelationQuery()
YetiForceCompany/YetiForceCRM#6 /web/yetiforce/app/TextParser.php(967): Vtiger_RelationListView_Model->getEntries(Object(Vtiger_Paging_Model))
YetiForceCompany/YetiForceCRM#7 /web/yetiforce/app/TextParser.php(940): App\TextParser->relatedRecordsListPrinter(Object(Occurrences_RelationListView_Model), Object(Vtiger_Paging_Model), 0)
YetiForceCompany/YetiForceCRM#8 /web/yetiforce/app/TextParser.php(484): App\TextParser->relatedRecordsList('Contacts|firstn...')
YetiForceCompany/YetiForceCRM#9 [internal function]: App\TextParser->App\{closure}(Array)
YetiForceCompany/YetiForceCRM#10 /web/yetiforce/app/TextParser.php(482): preg_replace_callback('/\\$\\((\\w+) : ([...', Object(Closure), '<table border="...')
YetiForceCompany/YetiForceCRM#11 /web/yetiforce/app/TextParser.php(452): App\TextParser->parseData('<table border="...')
YetiForceCompany/YetiForceCRM#12 /web/yetiforce/modules/Vtiger/models/PDF.php(516): App\TextParser->parse()
YetiForceCompany/YetiForceCRM#13 /web/yetiforce/app/Pdf/Drivers/Base.php(258): Vtiger_PDF_Model->parseVariables('<table border="...')
YetiForceCompany/YetiForceCRM#14 /web/yetiforce/modules/Vtiger/actions/PDF.php(177): App\Pdf\Drivers\Base->loadTemplateData()
YetiForceCompany/YetiForceCRM#15 /web/yetiforce/app/Controller/ExposeMethod.php(68): Vtiger_PDF_Action->generate(Object(App\Request))
YetiForceCompany/YetiForceCRM#16 /web/yetiforce/app/Controller/ExposeMethod.php(81): Vtiger_PDF_Action->invokeExposedMethod('generate', Object(App\Request))
YetiForceCompany/YetiForceCRM#17 /web/yetiforce/include/main/WebUI.php(188): Vtiger_PDF_Action->process(Object(App\Request))
YetiForceCompany/YetiForceCRM#18 /web/yetiforce/index.php(26): Vtiger_WebUI->process(Object(App\Request))
YetiForceCompany/YetiForceCRM#19 {main}

issue_with_status_rel_field

YetiForceCompany/YetiForceCRM#13486
#15942

@mariuszkrzaczkowski mariuszkrzaczkowski added the bug Something isn't working label Sep 27, 2022
@rskrzypczak rskrzypczak added enhancement New feature or request and removed bug Something isn't working labels Sep 28, 2022
@rskrzypczak rskrzypczak self-assigned this Sep 28, 2022
@apcloic apcloic changed the title [bug] relatedRecordsList on PDF module, condition not working for status_rel and comment_rel fields relatedRecordsList on PDF module, condition not working for status_rel and comment_rel fields Sep 28, 2022
@rskrzypczak rskrzypczak transferred this issue from YetiForceCompany/YetiForceCRM Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants