Needs work
Project:
Weight
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Jun 2017 at 11:49 UTC
Updated:
8 Feb 2020 at 10:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tahirmus commentedComment #3
tahirmus commentedComment #4
ziomizar commentedHi tahirmus,
I've tried it quickly using eck and it seems work correctly, with the latest dev version and drupal 8.6.1.
Did you still have the issue?
Comment #5
ziomizar commentedComment #6
ziomizar commentedComment #7
ziomizar commentedComment #8
lobodakyrylo commentedI also tried to create custom entity with weight field. My code looks like this:
This code doesn't define field storage so the Weight Selector field isn't shown in Views.
I found a solution but it works just for me:
This code overrides data for my entity. I think weight_field_views_data should be rewritten to cover fields without storage.
Comment #9
lobodakyrylo commentedAlso, I noticed that not all entities could have langcode field and it could generate this error:
Notice: Undefined property: Drupal\views\ResultRow::$customizer_style__weight_langcode in Drupal\weight\Plugin\views\field\WeightSelector->viewsForm() (line 89 of modules/contrib/weight/src/Plugin/views/field/WeightSelector.php).This is a patch for solving this issue
Comment #10
ziomizar commentedset to "Need review" to run automatic tests
Comment #12
ziomizar commentedThanks for spotting the error in #9 this has been commited to dev,
The issue still open as the patch don't solve the problem in the IS.
Comment #13
rithesh bk commentedcurrently i am working on that ......
Comment #14
rithesh bk commented