anchor database field too short

hedac - February 26, 2009 - 13:50
Project:Affiliates
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:paulbooker
Status:closed
Description

I needed more chars in the anchor field of the database because 100 is not enough for multisite installations

I would suggest changing it to 256
ALTER TABLE `affiliates_ads` CHANGE `anchor` `anchor` VARCHAR( 256 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL

#1

hedac - February 27, 2009 - 13:51

also have to change maxlength in affiliates.module for anchor
it was 120, now 256

$form['affiliate']['anchor'] = array(
'#type' => 'textfield',
'#title' => t('Hosted button URL'),
'#default_value' => $affiliate->anchor,
'#size' => 40,
'#maxlength' => 256,
'#description' => t('If your button is hosted elsewhere, enter the URL here.')
);

#2

paulbooker - March 2, 2009 - 16:00
Assigned to:Anonymous» paulbooker

I made the change for 'anchor' and also for 'redirect' and 'referer'.

Ill get these changes committed to the development branch later today.

Thanks for your help :-)

Best, Paul

#3

paulbooker - March 2, 2009 - 16:01
Status:active» fixed

#4

System Message - March 16, 2009 - 16:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.