Comments (5)
Please apply this =)
you need to regenerate container after applying fix
Oh, I missed the PR. Use the Solution From @stonebuzz
from fields.
hello,
in fact, after uninstall and reinstall plugin field (v1.21.10) and datainjection (v2.13.5), the mapping is now present. But the fields of bloc not appair. for exemple, i have bloc "ordinateur" with 3 fields
and the mapping not show it (choice of field is empty)
After search in php-error.log, i found:
help ..
Best regards
from fields.
I have found a solution.
When a field object is created, a class is generated in the folder files/_plugins/fields/inc/
.
In the static method get_table($classname = null)
the name of the same class is expected as parameter.
The Datainjection-Plugin calls the method without parameters so an empty string is always returned.
To fix the error, I recommend adapting the template plugins/fields/templates/injection.class.tpl as follows:
FROM
static function getTable($classname = null) {
if ($classname === null) {
return '';
}
$parent_class = get_parent_class($classname);
if ($parent_class === false) {
return '';
}
return getTableForItemType($parent_class);
}
TO
static function getTable() {
return getTableForItemType($parent_class);
}
The field object must then be recreated so that the class with the fix is generated.
from fields.
Please apply this =)
you need to regenerate container after applying fix
from fields.
Fixed since https://github.com/pluginsGLPI/fields/releases/tag/1.21.10
from fields.
Related Issues (20)
- Falha ao aparecer o campo addicional fields depois da abertura do chamado HOT 3
- Failed to update fields in bulk HOT 2
- Can't add new field on bloc HOT 3
- taskscheduler error when using a dynamic group with a criteria on the fields plugins HOT 4
- Missing device type in the conditional block to hide HOT 2
- adding conditionned fields
- Atualization plugin fields
- glpi 10 clone asset
- glpi 10 transfert asset avec custom field champs listes multiples HOT 1
- Impossible to use same block type in several entities HOT 1
- Additional fields update using API or data injection plugin HOT 1
- 1.21.8 : name field with number
- Bug lors de la suppression items de la corbeille
- Error when trying to close ticket after updating to 1.21.8
- Audit/history of changes to block and field configurations.
- Update possible on closed ticket even though UI prompts that the update was not made
- Issue with updating Fields plugin on GLPI 10 HOT 10
- Updated to 1.21.10 can no longer map using Data Injection HOT 2
- Update does not update the version number HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fields.