Fullscreen
Loading...
 
Skip to main content

function get_item_id in 3 different files

Status
Pending
Subject
function get_item_id in 3 different files
Version
2.x
Category
  • Consistency
Feature
Trackers
~Trackers (mirror)
Resolution status
New
Submitted by
E.W. Peter Jalajas
Rating
(0)
Description

I am poking around trackers trying to maybe copy the code to make a personal module or some such, and I noticed this:

r@s tw# grep -R function\ get_item_id ./*
./lib/trackers/trkWithMirrorTablesLib.php: function get_item_id($trackerId,$fieldId,$value) {
./lib/trackers/trackerlib.php: function get_item_id($trackerId,$fieldId,$value) {
./lib/tikilib.php: function get_item_id($trackerId,$fieldId,$value) {

Seems risky to me to have 3 version of the same function. Is that as designed?

Solution
Can/should 2 of them be removed, and the calls to the remaining one be edited as needed?
Importance
1 low
Priority
5
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1737
Created
Thursday 01 May, 2008 19:59:46 UTC
by Unknown
LastModif
Thursday 01 May, 2008 19:59:46 UTC


Show PHP error messages