Many functions require a parameter $field_weight. But what if the field is just a constant 1, such as used in the user-comment relationship?

One work around is to create a view and thus giving the constant field a name. But a nicer way is to handle it in the code.

Comments

danithaca’s picture

Version: » 6.x-1.1
Status: Postponed » Closed (won't fix)

#394794: provide {recommender_link_staging} and SQL SELECT as table name will fix this. Just write the constant weight in the SQL SELECT query in the $tablename argument.