Bug #55011
closed
when no link on an image the link is a space instat of an empty string
Added by Nico Pieters over 10 years ago.
Updated over 8 years ago.
Description
When calling $this->cObj->data['image_link'] in an extension for example perfectlightbox the value is " " ( a space ) this should be the empty string ""
I've checked the database:
In the database there is no space in the field
- Status changed from New to Needs Feedback
Hi Nico,
what does do you mean with
When calling $this->cObj->data['image_link']
? What is your goal and what does not work?
Hi Markus,
If in an extension you use $this->cObj->data['image_link'] it contains the value of the link when you click on that image. When there is no link defined the value should be empty.
It works, but the value is not empty when the link is not defined, but it contains the space-character.
So somewhere in the code a space-character is introduced when the value is empty.
I hope it's clear ;-)
- Category set to Frontend
- Status changed from Needs Feedback to New
- Target version changed from next-patchlevel to 7.1 (Cleanup)
- Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
- Target version changed from 7.4 (Backend) to 7.5
- Target version changed from 7.5 to 7 LTS
- Status changed from New to Needs Feedback
- Assignee set to Mathias Schreiber
I don't get it.
$this->cObj->data['image_link'] is a raw value from the DB.
You can't "call" it.
Apart from this, there is also no code modifying this value.
Can you supply a dummy extension and/or var_dump screenshot (xdebug maybe) illustrating the behavior?
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Mathias Schreiber)
- Target version deleted (
7 LTS)
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Also available in: Atom
PDF