Hello, i successfully got http post request and i can display json data.
How can i read them so i can store it to fields?
Hi tostinni,
You patch works fine for me, but should not be there any AJAX ? It does not make sense to me to click save button and every time the page is reloaded. In my case I am working with modal window, hence once I click save , modal is being closed, but I would like to continue and save also other rows.
Also even there is not modal - it sill refresh the whole page and if there are 20 rows I need to remember still which wan was updated last because after the refresh I am on top.
Would be possible to enable ajax call for this save button so it is saved immediately with no page reload ?
Hello loze,
I just tried your patch #68 but I am getting 1 Error and 2 Warnings, hence it does not work for me.
Error: Call to a member function getEntityTypeId() on null in Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity() (line 840 of //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php)
#0 [internal function]: Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity()
#1 //core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array()
#2 //core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(109): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse()
#3 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
#4 //core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#5 //vendor/symfony/http-kernel/HttpKernel.php(229): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#6 //vendor/symfony/http-kernel/HttpKernel.php(92): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#7 //core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#8 //core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#9 //core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#10 //core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#11 //vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#12 //core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#13 //index.php(19): Drupal\Core\DrupalKernel->handle()
#14 {main}
where Line 840 is :
// Reload the entity.
$entity_type = $entity->getEntityTypeId();
Warning: Undefined array key "#relationship" in Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity() (line 832 of //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php)
#0 //core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php(832): _drupal_error_handler()
#2 [internal function]: Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity()
#3 //core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array()
#4 //core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(109): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse()
#5 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
#6 //core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#7 //vendor/symfony/http-kernel/HttpKernel.php(229): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#8 //vendor/symfony/http-kernel/HttpKernel.php(92): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#9 //core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#10 //core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#11 //core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#12 //core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#13 //vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#14 //core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#15 //index.php(19): Drupal\Core\DrupalKernel->handle()
#16 {main}
where line line 832 is :
elseif (!empty($trigger['#ajax']['#relationship']) && $trigger['#relationship'] != 'none') {
$entity = $results_row->_relationship_entities[$trigger['#ajax']['#relationship']];
and
Warning: Undefined array key "none" in Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity() (line 833 of //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php)
#0 //core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 //modules/contrib/views_entity_form_field/src/Plugin/views/field/EntityFormField.php(833): _drupal_error_handler()
#2 [internal function]: Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::updateEntity()
#3 //core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array()
#4 //core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(109): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse()
#5 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
#6 //core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#7 //vendor/symfony/http-kernel/HttpKernel.php(229): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#8 //vendor/symfony/http-kernel/HttpKernel.php(92): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#9 //core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#10 //core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#11 //core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#12 //core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#13 //vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#14 //core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#15 //index.php(19): Drupal\Core\DrupalKernel->handle()
#16 {main}
Where line 833 is :
$entity = $results_row->_relationship_entities[$trigger['#ajax']['#relationship']];
Well Looks like serial will do the trick.
One condition "Compare Two scalar Values" and compare if field stage is equal to Completed (Negate the condition) then Gateway and again "Compare Two scalar Values" and compare if field stage is equal to CLOSED (Negate the condition)
Previously I tried one Gateways and 2 different connections. My bad.
Based on →
Description:
\Drupal\Core\Render\Element\RenderElement and \Drupal\Core\Render\Element\FormElement are deprecated and will be removed in Drupal 12. Instead, use \Drupal\Core\Render\Element\RenderElementBase and \Drupal\Core\Render\Element\FormElementBase respectively. This includes all the static methods on both classes.
So when I replaced
use Drupal\Core\Render\Element\FormElementBase;
with
use Drupal\Core\Render\Element\FormElement;
and
class UltimateTable extends FormElementBase implements ContainerFactoryPluginInterface {
with
class UltimateTable extends FormElement implements ContainerFactoryPluginInterface {
I was able at least enable module so no rollback is needed.
However there are 2 options now. Remove D9 compatibility ,or create additional D9 version with method.
Well now I know the reason. It
I am trying to change/add value so cannot get rid of verification error message once everything should be OK.
It is not Ok ,because the Form could not be build correctly because of 15818966 🐛 Illegal offset type Active issue, so now I can try to work on that issue again.
Well, I found out the reason.
It was a GIN Admin theme. When I switched to Claro - no issue found.
I had been using Gin 8.x-3.0-rc10 and now when I updated to latest Gin 8.x-3.0-rc13 everything works as expected.
Well to be honest I did not expect such fix, but glad it works after 2 days of troubleshooting...
Thank you for your support,
I have reverted back to version 10.2.5 (also the database) but I found out there is the same issue. I haven't tried to build the form there before to be honest.
However I am building form on my site where is still D9 running with no issues and it seems all modules are the same /enabled on both sites.
Do you think it can be module related ?
Thank You,
I am using this views_entity_form_field because of BULK updates of content types.
So I am experiencing now different type of issue. I wanted to use QUERY:Views to get nid of all nodes so system (ECA) can validate them one by one.
- It works and do validation, however I am unable to click save button even I have changed/add required values because every time when there is a new loop - it will take another one will determine still the old value (empty field) and system things it is still empty even I am trying to change/add value so cannot get rid of verification error message once everything should be OK.
Looks like that :form build is missing here and I won't be able to continue.
It looks like the form in views with this module "views_entity_form_field" is being built , so no need to build it again.
Now I am getting issue to get the current nid. My url of view is "/form-field-verification-test/3651
"
Everything works fine as expected with this form now when I add "Entity:Load" and configure : Load entity form : TYPE and ID and Entity type is Content and entityID =3651
Of course this one works because there is exact ID. When I change Load entity form to "Current scope" I am unable to get ID, which is logical i guess, however my question is : How can I get the current node id when using form?
I am trying to use parameter from URL, but I am not sure how to configure it in views. When i tried anything like :"/form-field-verification-test/myparemeter=3651
" the view was not displayed :(
So I believe once I can get the ID from URL I will be able to complete my task...
Any help here?
Note: Once I enabled debug, I can see error : Access denied to Build node from submitted values (Activity_0lyc17w) from ECA Validation
so basically it fails at the begging, but why such access is denied?
HI shenron_segamag,
I am experiencing the same issue - it was caused by uninstalling business rules which have been used as "dependent field" based on this guide here : dependent-field → , so I had to install it back, however business rules are not D10 ready and are replaced with ECA → .
For D10 it would be better to achieve the same with this module dependent_fields → and this guide: guide
In my case for every content type where such "dependent" business rule entity reference is being used I am unable to edit/add once bussines rules module is not available. In content which does not have such rule everything works as expected. So looks like similar or the same issues to me.
Maybe it is different case, but at least it can help anyone else who tries to migrate from D9 to D10 and deleted all business rules but forgot to get rid of rules configured in views as entity reference.
Hello,
I do have the same issue. I just installed drupal (clean) so I do not have any other date modules and still the same issue.
+1
Can anyone provide the fix ?
Hi apmosooner, is there any progress?
I would appreciated the patch.
Thank you
I have reopen issue here 3469612 🐛 Hide block/view if No results behavior Active as this one cannot be reopen.
Thank you. I did not know that dependency can be disabled in settings.my bad.
I am changing priority as I am experiencing the same and it created huge critical issue when I tried to remove it in second content type where it should not be copied.
The only way how to fix it now is to do a rollback.
+1 I have got the same issue.
I am not using Inline Entity Form and I do not have installed it.
In my case I have used dependency to field "B" and then I reused this field in another content type . However it takes from some reason dependency and it is displayed in the second content type and also to field "B" however such field "B" is not reused in the second content type, just the field "A" has been reused.
When I want to update that dependency now in the first content type I am getting this issue
But this
if (!isset($form['#conditional_fields'])) {
return;
}
Resolved the issue.
Please try to create a patch.
No it is fine now. If you want edit only yours use own instead.
+1 - It works fine with select list widget. However when you change widget to autocomplete - it does not work at all. It does not matter if it is required field, or visibility or anything else - it looks like autocomplete widget does not work at all!
much appreciated.
Hello,
Let me understand you better. It is not clear. I am using this awesome module for more >4 years and i have used a lot of different use cases.
However I am not sure about your issue.
Can you provide step by step to reproduce the issue and better describe it + add some printscreens?
Hi,
Read only field is always read only. But there are a lot of cases i need read only only for some roles, and some of them have to have writte one.
For example project name cannot be changed once created but PM needs to see it so it is clear he is updating the correct one. Or project start date he needs to see it in edit mode but he cannot change it - for this case read only is good enough but sometimes project name has to be changed or other project settings by program lead which has different role.
That's why this feature is awesome and should be implemented to prod version.
Hi devkinetic
It sounds good. Would you be able to provide a patch?
Hi dcimorra.
It looks like as duplicate to 3383149 🐛 Simple cron log should not log non scheduled jobs. RTBC
What do you think?
Thank you @sgohil1,
You have saved my day. The patch #3 works fine for 2.0 version also.
@Manuel Garcia, I do not agree "
but it would no longer be an accordion.
. It is still accordion, but previous one is still open, until you click on it and make it collapsed again.
However by default this option is also disabled so it is always accordion and who does not need ,simply won't enable it.
Thank you for your answer.
It will be a big help help if your customer would allow you to publish such an amazing feature so community can use it.
Maybe one day, much appreciated.
Hi
What is the difference between this module and entity extra one?
This one is awesome but have never used tha one you have mentioned.
Any plans?
+1 need the same feature, export multiple data exports at the same time to one file.
Does it mean there is any progress?
Bingo!. Finally.
It sounds like maybe having them present before the module is installed may prevent them from being recognized.
That is exactly the issue. It seems every time when you want to add/remove column you have to comment hooks out - enable module and later uncomment and run update.php.
Thank you
Yes i have also mentioned that in my previous answer. Not sure what i am missing here. I have spent hours to make it work already:(
Thank you..
Does it mean I just need 2 following files :
custom_field_updates.info.yml
and
custom_field_updates.install
with code:
<?php
/**
* Adds the "port" column to the "field_circuit" field storage.
*/
function custom_field_updates_update_10001(): void {
/** @var \Drupal\custom_field\CustomFieldUpdateManagerInterface $update_manager */
$update_manager = Drupal::service('custom_field.update_manager');
$update_manager->addColumn('node', 'field_circuit', 'portx', 'string');
}
Because I just tried and enabled module ,run update.php and cleared cache but I don't see any difference. Still when I visit field_circuit I am unable to see portx field item there.
I also tried to remove already existing "decom_id" item from field_circuit but also once I enable module (custom_field_updates.install) with following code of , nothing happens :
/**
* Remove a column from custom_field.
*/
function my_module_update_10002(): void {
/** @var \Drupal\custom_field\CustomFieldUpdateManagerInterface $update_manager */
$update_manager = Drupal::service('custom_field.update_manager');
$update_manager->removeColumn('node', 'field_circuit', 'decom_id');
}
Hi apmsooner,
Can you help me with this a little bit.
I do really need to add additional column to my existing custom field.
Name of custom field is "field_circuit"
and new column machine name should be "portx" of string (255)
1. I have created custom_field_updates.info.yml
2. I have created custom_field_updates.install as follow :
<?php
/**
* @file
* Install file for the custom_field_updates module.
*/
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;
/**
* Implements hook_module_install().
*/
function custom_field_updates_module_install() {
$entity_type_manager = \Drupal::service('entity_type.manager');
$field_storage_config = FieldStorageConfig::load('<strong>field_circuit</strong>');
// Check if the field storage configuration exists.
if ($field_storage_config) {
// Create an update hook to add the new column.
$update_hook = 8001;
$entity_type_manager->getStorage('update')->create([
'id' => $update_hook,
'announce' => 'Add "port" column to "<strong>field_circuit</strong>" field',
'execute' => 'custom_field_updates_update_' . $update_hook,
])->save();
}
}
3. I have created custom_field_updates.update.php as follow:
<?php
/**
* @file
* Update hook for the custom_field_updates module.
*/
use Drupal\Core\Database\Connection;
/**
* Adds the "port" column to the "field_circuit" field storage.
*/
function custom_field_updates_update_8001(): void {
/** @var \Drupal\custom_field\CustomFieldUpdateManagerInterface $update_manager
*/
$update_manager = Drupal::service('custom_field.update_manager');
$update_manager->addColumn('node', '<strong>field_circuit</strong>', '<strong>portx</strong>', 'string', ['length' => 255, 'machine_name' => TRUE]); }
When I enable module, i still cannot see new column in field_circuit and also in database. (I also tried with 9001 instead of 8001)
What I am missing ?
is there any progress?
I think it was caused by me.
Problem : I always needed to override the machine-readable name. But I wanted to be very fast so once I added some machine-readable name I immediately clicked on Add another button. However it seems I need to click outside of form first so Ajax will load it and then I can click "Add another".
Here is picture where it is shown that I am still typing inside the form and in case I click Add another button it fails. So first I need to click outside and then continue.
I just tried with clean and I found out it is caused by this module easy_entity_field →
1.Install easy_entity_field
2.Configure > Enable Content
3.Add any base field (no need to create any content(
4. Try import of any ECA module.
I do have 2 base fields so probably this is the reason why I can see 2 warnings.
When I deleted them - it works as expected. However I cannot remove them on my prod because they are being used.
Can I do import from my test to prod even there are such errors ? ( I believe model should not be impacted).
However it seems this easy_entity_field module is not compatible with ECA or not sure why there is problem with ECA... But easy_entity_field is awesome module...
+ when I go back in browser and refresh I can see following to warnings :
Warning: Undefined array key 1 in Drupal\Core\Config\ConfigManager->findMissingContentDependencies() (line 499 of core\lib\Drupal\Core\Config\ConfigManager.php).
Drupal\Core\Config\ConfigManager->findMissingContentDependencies() (Line: 693)
Drupal\Core\Config\ConfigImporter->processMissingContent(Array) (Line: 561)
Drupal\Core\Config\ConfigImporter->doSyncStep('processMissingContent', Array) (Line: 537)
Drupal\Core\Config\ConfigImporter->import() (Line: 365)
Drupal\eca_ui\Form\Import->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('eca_import', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
and
Warning: Undefined array key 2 in Drupal\Core\Config\ConfigManager->findMissingContentDependencies() (line 499 of core\lib\Drupal\Core\Config\ConfigManager.php).
Drupal\Core\Config\ConfigManager->findMissingContentDependencies() (Line: 693)
Drupal\Core\Config\ConfigImporter->processMissingContent(Array) (Line: 561)
Drupal\Core\Config\ConfigImporter->doSyncStep('processMissingContent', Array) (Line: 537)
Drupal\Core\Config\ConfigImporter->import() (Line: 365)
Drupal\eca_ui\Form\Import->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('eca_import', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Hi.
Thank you. I tested it today and now i do have one main model which has entity updtate and it has 3 ways of triggering custom entity event so i was able to change from "update" to "eca custom event" and it seems it is working as expected.
Thank you. When i tried today it worked. Looks like i needed a break. Thanks for your test. Much appreciated.
Thanky you
.so if I use custom event (entity aware) in one model can i load it in second model?
coaston → created an issue.
Hi apmsooner - The same for radio-button even I tried with GIN theme.
Do you think you can bring patch for this one also ? (if so I will rename title of this issue)
Thank you.
I am currently busy with other tasks but will reopen if needed later. However good to know i can ignore that warning.
@sakiland - thank you for your patch, it looks like it works fine for Drupal 10.2x however only for nodes. When you try patch #137 to render in modal/dialog/off canvas USER, there is an error:
Error: Call to a member function render() on array in Drupal\Core\Render\MainContent\DialogRenderer->getTitleAsStringable() (line 149 of /core/lib/Drupal/Core/Render/MainContent/DialogRenderer.php).
#0 /core/lib/Drupal/Core/Render/MainContent/OffCanvasRenderer.php(63): Drupal\Core\Render\MainContent\DialogRenderer->getTitleAsStringable()
#1 /core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\OffCanvasRenderer->renderResponse()
#2 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#3 /core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#4 /vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#5 /vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#6 /core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#7 /core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#8 /core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#9 /core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#10 /core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#11 /core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#12 /core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#13 /core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#14 /core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#15 /core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#16 /core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#17 /index.php(19): Drupal\Core\DrupalKernel->handle()
#18 {main}
Thank you. After I applied your patch new users are not Anonymous anymore.
Thank you. #3 works fine.
@van.dordafog thank you your patch #28 works fine for D10.2.5.
However as I already mentioned - #31 - Merge request is not working at all.
@jurgenhaas thank you.
I am trying to combine also with this : User network changes demo, however once I import it I am getting following error when multivariate field does not have currently any value.
Failed execution of Get field value: new networks (Activity_0g3f8fe) from ECA User network changes (eca_lib_0005) for event Drupal\eca_content\Event\ContentEntityUpdate: The provided field field_user_networks does not exist as a property path on the user entity having ID 1..
It is just for the first value, when I tried to add additional one it works fine. Is that normal behavior ?
I think it is because by default there is some value which is blank as shown here:
I just found out this issue was caused when I applied this patch : 094098#comment-15578753 ✨ Provide form display formatter for greying-out a field or hiding it completely Needs review
Merge request !23 from #30 created additional issue described here. Rollback was needed.
3440233 🐛 Call to undefined method getEntity() Active
Thank you.
I tried with your proposed solution and using multivalue loop but from some reason when i use multivalue field or views as list and try > grater than 0 it works fine...but when i use token set value with multiple fields separated by comma it does not work. So struggling.
I have to debug.
However not sure if I should create 2 tokens - one token with multiple fields which are origin and the second one with entity so i can compare values of 2 tokens but i gues i need to pop up the item using list remove(drop) item first in loop.
Well,
If i go to content type and enable Teaser and will remove all fields > Taxonomy will display just Title of content type (unable to hide title). However when I disable teaser on content type and navigate back to taxonomy - i can see rendered all fields taken from content type and unable to do anything with.
It looks like - it takes teaser and if not enabled it will render everything by default when used field of "Easy Entity Base Field"
So it is definitely a bug. Once there are 1000 + contents - it will display by default for every taxonomy everything which has performance issues.
+1
@apmsooner, thank you so much for your effort. Much appreciated!
It looks good, I don't see any error in logs, however looks like nothing is passing so it seems @jurgenhaas has to review also.
@jurgenhaas I have tried simple model with standard entity reference field to User using this manual : Eca manual and i was able to see if user was added + his name or if user was removed so this worked fine.
However when I changed all parameters to custom field with name "field_resource
" (entity reference to user called "name
" + one text field called "role
" as described on picture above) the first problem is that new_list and origin_list are blank and new_user and original_user is []. When I changed parameter from field_resource
to field_resource:name
the list value now looks "better" and shows ID of all assigned users, however new_user
and original_user
are still [].
Another issue is when it passed through Trigger (custom event entity aware) and loaded - it always loads Node id ,instead of user id.
So not sure if anything else has to be updated in custom field or I am missing anything.
@jurgenhaas Can you be so kind and test some simple model to determine the issue ?
Thank you
Thank you guys. Maybe one day:)
I just found out that there is similar issue for "Entity:GET Value" which triggers :
event Drupal\eca_content\Event\ContentEntityUpdate: Property value is unknown..
so it seems also standard ECA module needs to handle this first...
Well for the Grouped filters (Exposed) this create an issue because it takes 2.5 seconds to load results with Ajax so user can think that there are 0 results and choose another option.
This problem is connected with 3351448 issue which brings ability to configure timeout as per need. For text field you can configure 2500 if needed , but for filters 500ms is good enough.
So I would suggest to connect both patch together and create one which works for both so instead of :
-timeoutID = setTimeout($.proxy(triggerSubmit, this.form), 2500);
+timeoutID = setTimeout($.proxy(triggerSubmit, this.form), drupalSettings.views_autosubmit.timeout);
as described in 3351448
thank you, it works fine for Drupal 10.2.5
@apmsooner
-Unfortunately still the same issue, even I applied #10 patch from advised link. I have added like 6-7 so I thought the problem was resolved at first but tried to add 8th one and all got removed :(
Thank You @apmsooner
Patch #10 works for me and I am able to change and save the field.
My bad, you are right. I had enabled update in composer.json for this patch. So it was downloaded automatically.
Thank you.
I am not using Gin because there are issues with module Chosen which i use a lot.
So customer will need to accept that date fields will be in a separated rows.
Looks likes this code is already part of the 8.x-1.3