By: Brandon
Date: 2010-09-30
Time: 17:05
|
merge the same text into three blocks not woking as expected.
$TBS->MergeBlock('concertName', 'text', $cName, '+');
$TBS->MergeBlock('cN1', 'text', $cName, '+');
$TBS->MergeBlock('cN2', 'text', $cName, '+');
|
works but
$TBS->MergeBlock('concertName,cN1,cN2', 'text', $cName, '+');
|
only merges the value into the first block.
What am I doing wrong?
|
By: Brandon
Date: 2010-09-30
Time: 17:47
|
Re: merge the same text into three blocks not woking as expected.
And if I convert the simple value to an array it works as well:
$cName = array($_GET['cName']);
$TBS->MergeBlock('concertName,cN1,cN2', $cName, '+');
|
|
By: Skrol29
Date: 2010-09-30
Time: 18:37
|
Re: merge the same text into three blocks not woking as expected.
Hi Brandon,
You've pointed on a bug.
To fix this bug you need to replace the following code:
if ($LocR->BlockFound) {
$Src->RecNum = 1;
$Src->CurrRec = false;
$Txt = substr_replace($Txt,$Src->RecSet,$LocR->PosBeg,$LocR->PosEnd-$LocR->PosBeg+1);
} else {
|
with:
if ($LocR->BlockFound) {
$Txt = substr_replace($Txt,$Src->RecSet,$LocR->PosBeg,$LocR->PosEnd-$LocR->PosBeg+1);
$Src->DataFetch(); // store data if needed for multiple blocks
$Src->RecNum = 1;
$Src->CurrRec = false;
} else {
|
This will be fixed in the next release.
Thanks for this bug track.
|
By: Brandon
Date: 2010-09-30
Time: 21:44
|
Re: merge the same text into three blocks not woking as expected.
tbs_class_php5.php
Version : 3.6.0 for PHP 5
Date : 2010-09-23
I assume you mean at line 1801.
Seems to be working for me.
Thanks!
|
By: Skrol29
Date: 2010-10-29
Time: 17:46
|
Re: merge the same text into three blocks not woking as expected.
This bug is fixed in TBS 3.6.1 which has been just released.
|
By: Brandon
Date: 2010-10-30
Time: 15:20
|
Re: merge the same text into three blocks not woking as expected.
great - I will upgrade my clients as I visit them!
|
|
Posting in progress.
Please wait...
|