Feature #21892

Substitution of default markers is not available as single function

Added by David Bruchmann about 10 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-12-29
Due date:
% Done:

100%

PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

in the function t3lib_befunc::exec_foreign_table_where_query a lot of default markers (like CURRENT_PID, etc.) are replaced.
It would be useful to have this substitution available as single function, so that it can be called without extecuting some query.
Furthermore the function for substitution should be integrated in t3lib_div because it's a very basic purpose and hasn't logically to be restricetd to backend.

(issue imported from #M13114)


Related issues

Related to TYPO3 Core - Bug #50976: Mixed up parameters in call to replaceMarkersInWhereClause Closed 2013-08-09

Associated revisions

Revision 9bf2c389 (diff)
Added by Nicole Cordes over 6 years ago

[FEATURE] Substitution of default markers in single function

In the function
TYPO3\CMS\Backend\Utility\BackendUtility::exec_foreign_table_where_query
a lot of default markers (like CURRENT_PID, etc.) are replaced.
It would be useful to have this substitution available as single
function, so that it can be called without executing some query.

Resolves: #21892
Releases: 6.2
Change-Id: I4da8279d1b95566690bb0934ac00299e4f4fee3e
Reviewed-on: https://review.typo3.org/22661
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring

History

#1 Updated by Gerrit Code Review over 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22661

#2 Updated by Gerrit Code Review over 6 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22661

#3 Updated by Gerrit Code Review over 6 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22661

#4 Updated by Gerrit Code Review over 6 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22661

#5 Updated by Nicole Cordes over 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Kim Lang over 6 years ago

  • Target version deleted (0)

this patch breaks the functionality of the complete BE.
I am not able to edit the page headers anymore.

The error: you give the wrong parameter order:

you call:
static::replaceMarkersInWhereClause($fTWHERE, $field, $TSconfig, $foreign_table)

function:
function replaceMarkersInWhereClause($whereClause, $table, $field = '', $tsConfig = array())

#7 Updated by Anja Leichsenring over 6 years ago

  • TYPO3 Version changed from 4.3 to 6.2

Fix is on the way, thank you for reporting the error. Find it here: http://forge.typo3.org/issues/50976

#8 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF