'Link alert_id to cap_info_parameter table'

@staticmethod
def cap_info_parameter_onaccept(form):

    form_vars = form.vars
    info_id = form_vars.get('info_id', None)
    if (not info_id):
        return
    db = current.db
    itable = db.cap_info
    irow = db((itable.id == info_id)).select(itable.alert_id, limitby=(0, 1)).first()
    alert_id = irow.alert_id
    if alert_id:
        db((db.cap_info_parameter.id == form_vars['id'])).update(alert_id=alert_id)
